Android Question drone mission crashing

Status
Not open for further replies.

shb777

Active Member
Licensed User
Longtime 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)
 

shb777

Active Member
Licensed User
Longtime User
those are the instruction i used

from you post in this thread: https://www.b4x.com/android/forum/threads/maven-artifact-not-found.67761/

you say this:



Have you added any jar with #AdditionalJar and an absolute path?

then

This is the problem. You need to copy the jar file to the additional libraries folder and reference it with #AdditionalJar: gplussdk


I had this in my project:

B4X:
#AdditionalJar: com.google.android.gms:play-services-maps

I changed it to this

B4X:
#AdditionalJar: play-services-maps.jar

but I'm still getting the same error when I compile
 
Upvote 0
Status
Not open for further replies.
Top