Android Question Dji Library

PABLO2013

Active Member
Licensed User
Greetings, I have carried out several procedures to make this library work, but this is the recurring error, if someone has worked it out and can help me, thanks
B4X:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/util/Pools$SynchronizedPool;
    at dji.midware.data.manager.P3.i$a.<clinit>(Unknown Source)
    at dji.midware.data.manager.P3.i$a.obtain(Unknown Source)
    at dji.midware.data.manager.P3.i.a(Unknown Source)
    at dji.midware.usb.P3.UsbAccessoryService$1.onGetBody(Unknown Source)
    at dji.midware.parser.plugins.b.c(Unknown Source)
    at dji.midware.parser.plugins.b.a(Unknown Source)
    at dji.midware.usb.P3.UsbAccessoryService$RecvBufferRunnable.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:761)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.util.Pools$SynchronizedPool" on path: DexPathList[[zip file "/system/framework/com.android.future.usb.accessory.jar", zip file "/data/app/b4a.dji.test1-1/base.apk", zip file "/data/user/0/b4a.dji.test1/.cache_sdk/sdkclasses.jar"],nativeLibraryDirectories=[/data/app/b4a.dji.test1-1/lib/arm, /data/app/b4a.dji.test1-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    ... 8 more
--------- beginning of crash
** Activity (main) Pause, UserClosed = true **
Registro conectado a:  NVIDIA SHIELD Tablet
 

PABLO2013

Active Member
Licensed User
Thanks Erel, yes of course, reinstall everything, b4a, jdk, sdk, and the dji library, as you indicate, I am already registered in dji, etc ... I can't really solve it, thanks
 
Upvote 0

DonManfred

Expert
Licensed User
based on the error you are not using the latest version i guess.
OR you are not using AndroidX

I fear the first one; not using the newest Lib. The error suggests a missing dependecy to android-support
 
Last edited:
Upvote 0

PABLO2013

Active Member
Licensed User
thanks don manfred, AndroidX is installed with the latest version of b4a and what is recommended for proper installation or do I have to take more steps to get AndroidX, thanks
 
Upvote 0

PABLO2013

Active Member
Licensed User
Greetings, this is the last thing that results after doing the updates, if you can help me, thanks

B4X:
java.lang.NoClassDefFoundError: Failed resolution of: Ldji/sdk/sdkmanager/DJISDKManager;
    at anywheresoftware.b4a.objects.DJISDKManagerWrapper.Initialize(DJISDKManagerWrapper.java:38)
    at b4a.dji.test1.main$ResumableSub_Activity_Create.resume(main.java:423)
    at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:267)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:207)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
    at anywheresoftware.b4a.keywords.Common$14.run(Common.java:1760)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6120)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
Caused by: java.lang.ClassNotFoundException: Didn't find class "dji.sdk.sdkmanager.DJISDKManager" on path: DexPathList[[zip file "/system/framework/com.android.future.usb.accessory.jar", zip file "/data/app/b4a.dji.test1-1/base.apk"],nativeLibraryDirectories=[/data/app/b4a.dji.test1-1/lib/arm, /data/app/b4a.dji.test1-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    ... 13 more
(Exception) java.lang.Exception: java.lang.NoClassDefFoundError: Failed resolution of: Ldji/sdk/sdkmanager/DJISDKManager;
** Activity (main) Pause, UserClosed = false **
--------- beginning of system
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
 
Upvote 0
Top