Android Question drone mission crashing

Status
Not open for further replies.

shb777

Active Member
Licensed User
I'm running drone mission with my mavic connected. It's crashing. Here is the log:

Logger connected to: samsung SM-G600FY
--------- beginning of main
--------- beginning of system
**************************** BaseApplication **************************
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
activation listener added
Registered successfully!
activation state: UNKNOWN
binding state: UNKNOWN
No connected product
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/dji/service/areacode/wire/DJIACCityListModel;
at com.dji.service.areacode.d.a(Unknown Source)
at com.dji.service.areacode.d.a(Unknown Source)
at com.dji.service.areacode.d.a(Unknown Source)
at com.dji.service.areacode.DJIAreaCodeManger.a(Unknown Source)
at com.dji.service.areacode.DJIAreaCodeManger.a(Unknown Source)
at com.dji.service.areacode.DJIAreaCodeManger$e$1.handleMessage(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.dji.service.areacode.wire.DJIACCityListModel" on path: DexPathList[[zip file "/system/framework/com.android.future.usb.accessory.jar", zip file "/data/app/b4a.dji.waldo-1/base.apk", zip file "/data/data/b4a.dji.waldo/.cache_sdk/sdkclasses.jar"],nativeLibraryDirectories=[/data/app/b4a.dji.waldo-1/lib/arm, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 9 more
Suppressed: java.lang.NoClassDefFoundError: com.dji.service.areacode.wire.DJIACCityListModel
at dalvik.system.DexFile.defineClassNative(Native Method)
at dalvik.system.DexFile.defineClass(DexFile.java:226)
at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
at dalvik.system.DexPathList.findClass(DexPathList.java:321)
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
... 11 more
Suppressed: java.lang.ClassNotFoundException: com.dji.service.areacode.wire.DJIACCityListModel
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 10 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
** Activity (main) Pause, UserClosed = true **
**************************** BaseApplication **************************
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Registered successfully!
activation listener added
activation state: UNKNOWN
binding state: UNKNOWN
No connected product
Product connected
simulator: false
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/dji/service/areacode/wire/DJIACCityListModel;
at com.dji.service.areacode.d.a(Unknown Source)
at com.dji.service.areacode.d.a(Unknown Source)
at com.dji.service.areacode.d.a(Unknown Source)
at com.dji.service.areacode.DJIAreaCodeManger.a(Unknown Source)
at com.dji.service.areacode.DJIAreaCodeManger.a(Unknown Source)
at com.dji.service.areacode.DJIAreaCodeManger$e$1.handleMessage(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.dji.service.areacode.wire.DJIACCityListModel" on path: DexPathList[[zip file "/system/framework/com.android.future.usb.accessory.jar", zip file "/data/app/b4a.dji.waldo-1/base.apk", zip file "/data/data/b4a.dji.waldo/.cache_sdk/sdkclasses.jar"],nativeLibraryDirectories=[/data/app/b4a.dji.waldo-1/lib/arm, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 9 more
Suppressed: java.lang.NoClassDefFoundError: com.dji.service.areacode.wire.DJIACCityListModel
at dalvik.system.DexFile.defineClassNative(Native Method)
at dalvik.system.DexFile.defineClass(DexFile.java:226)
at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
at dalvik.system.DexPathList.findClass(DexPathList.java:321)
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
... 11 more
Suppressed: java.lang.ClassNotFoundException: com.dji.service.areacode.wire.DJIACCityListModel
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 10 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
** Activity (main) Pause, UserClosed = true **
Ignoring event: aircraft_batterystate
Ignoring event: aircraft_batterystate
Ignoring event: aircraft_batterystate
Ignoring event: aircraft_batterystate
Ignoring event: aircraft_batterystate
**************************** BaseApplication **************************
**************************** BaseApplication **************************
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/dji/service/areacode/wire/DJIACCityListModel;
at com.dji.service.areacode.d.a(Unknown Source)
at com.dji.service.areacode.d.a(Unknown Source)
at com.dji.service.areacode.d.a(Unknown Source)
at com.dji.service.areacode.DJIAreaCodeManger.a(Unknown Source)
at com.dji.service.areacode.DJIAreaCodeManger.a(Unknown Source)
at com.dji.service.areacode.DJIAreaCodeManger$e$1.handleMessage(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.dji.service.areacode.wire.DJIACCityListModel" on path: DexPathList[[zip file "/system/framework/com.android.future.usb.accessory.jar", zip file "/data/app/b4a.dji.waldo-2/base.apk", zip file "/data/data/b4a.dji.waldo/.cache_sdk/sdkclasses.jar"],nativeLibraryDirectories=[/data/app/b4a.dji.waldo-2/lib/arm, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 9 more
Suppressed: java.lang.NoClassDefFoundError: com.dji.service.areacode.wire.DJIACCityListModel
at dalvik.system.DexFile.defineClassNative(Native Method)
at dalvik.system.DexFile.defineClass(DexFile.java:226)
at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
at dalvik.system.DexPathList.findClass(DexPathList.java:321)
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
... 11 more
Suppressed: java.lang.ClassNotFoundException: com.dji.service.areacode.wire.DJIACCityListModel
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 10 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
** Activity (main) Pause, UserClosed = true **
activation listener added
sending message to waiting queue (sdk_registeredresult)
sending message to waiting queue (sdk_productchanged)
**************************** BaseApplication **************************
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/dji/service/areacode/wire/DJIACCityListModel;
at com.dji.service.areacode.d.a(Unknown Source)
at com.dji.service.areacode.d.a(Unknown Source)
at com.dji.service.areacode.d.a(Unknown Source)
at com.dji.service.areacode.DJIAreaCodeManger.a(Unknown Source)
at com.dji.service.areacode.DJIAreaCodeManger.a(Unknown Source)
at com.dji.service.areacode.DJIAreaCodeManger$e$1.handleMessage(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.dji.service.areacode.wire.DJIACCityListModel" on path: DexPathList[[zip file "/system/framework/com.android.future.usb.accessory.jar", zip file "/data/app/b4a.dji.waldo-1/base.apk", zip file "/data/data/b4a.dji.waldo/.cache_sdk/sdkclasses.jar"],nativeLibraryDirectories=[/data/app/b4a.dji.waldo-1/lib/arm, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 9 more
Suppressed: java.lang.NoClassDefFoundError: com.dji.service.areacode.wire.DJIACCityListModel
at dalvik.system.DexFile.defineClassNative(Native Method)
at dalvik.system.DexFile.defineClass(DexFile.java:226)
at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
at dalvik.system.DexPathList.findClass(DexPathList.java:321)
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
... 11 more
Suppressed: java.lang.ClassNotFoundException: com.dji.service.areacode.wire.DJIACCityListModel
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 10 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
** Activity (main) Pause, UserClosed = true **
sending message to waiting queue (sdk_registeredresult)
activation listener added
sending message to waiting queue (sdk_productchanged)
 

Cableguy

Expert
Licensed User
Please, Please, Please!
When posting logs, code or any other form of quoted text, USE THE APPROPRIATE TEXT TAGS FOR EASE OF READING!!!!
 
Last edited:

shb777

Active Member
Licensed User
GUESS WHAT!!!!!! Last night I was thinking why the app worked from August 2017
to May 2018 with no problems, and then in June 2018, it would stop working. So I got
the idea that maybe something changed with B4A. So I've always saved old versions
of my project, by zipping up the whole project, every time I made a major change. So I
got the idea of unzipping an old project, and rather than re building it in B4A, I would
just take the old apk file, copy it to my tablet, and reinstall it. I did this with a version
from March 31, 2018. I just flew it, and it worked flawlessly!!!!!!!!! It's a little small for my
new tablet, which is 10" vs my old 8" nvidia shield. Of course, I can't make any changes
to it, because if I recompile it, it won't work. So something changed in B4A or my installation.
 
Last edited:

Erel

Administrator
Staff member
Licensed User
Might be related to targetSdkVersion in the manifest editor. Uninstall the existing app and change it to 22.
 

shb777

Active Member
Licensed User
I changed it to 22, but it kept crashing. So I reinstalled the old app, and went outside and flew again. Telemetry stopped coming in once, but other than that it worked ok. maybe I need to reinstall B4A.
 

Erel

Administrator
Staff member
Licensed User
You previously wrote that it crashed during flight. The error you posted above looks like an error that can only happen when the app starts.
 

shb777

Active Member
Licensed User
You previously wrote that it crashed during flight. The error you posted above looks like an error that can only happen when the app starts.
Yes the crash I posted the logs for was indoors, not in flight, but the app crashed outdoors too. But I never took off because the app crashed before home was set, and I don't take off until home is set.
 
Last edited:

shb777

Active Member
Licensed User
Please upload the project that crashes at startup.
this is from my old post, #28 I took my drone out for flight testing today. The new app was constantly crashing. So I installed drone mission, and it too was constantly crashing. I had found out previously that all the apps including drone mission crash after the drone is left on a minute or so.

So even your drone mission program was crashing when compiled on my B4A installation. So I think I should send you my project from 3-31-18, you can compile it on your system, and then send me back the apk and I will see if it runs OK. Then we will know if there's something wrong with my installation.
 

Erel

Administrator
Staff member
Licensed User
You need to check the logs right after the app crashes.
 

shb777

Active Member
Licensed User
i'm installing a new 8.3 on a different computer so i'll try that when it's finished.
 

shb777

Active Member
Licensed User
after installing 8.3 on a different computer, i'm getting this error when compiling my app

B4A Version: 8.30
Parsing code. (0.09s)
Compiling code. (0.13s)
Compiling layouts code. (0.01s)
Organizing libraries. Error
Maven artifact not found: com.android.support/support-v4
 
Status
Not open for further replies.
Top