Android Question DJI error

PABLO2013

Well-Known Member
Licensed User
Longtime User
Greetings, I have reinstalled my programs but I still continue with this error and I do not know how to fix it, thanks.
 

Attachments

  • Captura.PNG
    Captura.PNG
    64.2 KB · Views: 162

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
You are calling Activity_permissionResult in the delgate

line 55 in main needs to be :
B4X:
b4xpages.Delegate.B4xPage_PermissionResult(Permission,result)
 
Upvote 0

PABLO2013

Well-Known Member
Licensed User
Longtime User
tks, Andrew
but b4xpages.Delegate.B4xPage_PermissionResult(Permission,result) is a unknown member (b4xpages 1.07)
 
Upvote 0

PABLO2013

Well-Known Member
Licensed User
Longtime User
tks, Andrew
but b4xpages.Delegate.B4xPage_PermissionResult(Permission,result) is a unknown member (b4xpages 1.07)
 
Upvote 0

PABLO2013

Well-Known Member
Licensed User
Longtime User
1. Windows 8.1 64, phatom 4 pro v1, ba4 10.5, java 11 , Tablet Shield Android 7.0

2. The application is your example without any modification

3. The application has two bugs at the moment:

A. Failed to delete the application and reinstall it (Release mode)

B4X:
**************************** BaseApplication2 **************************
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
** Activity (main) Pause event (activity is not paused). **
** Activity (main) Resume **
** Activity (main) Pause event (activity is not paused). **
** Activity (main) Resume **
** Activity (main) Pause event (activity is not paused). **
b4xmainpage$ResumableSub_B4XPage_Createdresume (java line: 264)
java.lang.NoClassDefFoundError: Failed resolution of: Ldji/sdk/sdkmanager/DJISDKManager;
    at anywheresoftware.b4a.objects.DJISDKManagerWrapper.Initialize(DJISDKManagerWrapper.java:54)
    at b4a.dji2.pablo.b4xmainpage$ResumableSub_B4XPage_Created.resume(b4xmainpage.java:264)
    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.dji2.pablo-1/base.apk"],nativeLibraryDirectories=[/data/app/b4a.dji2.pablo-1/lib/arm, /data/app/b4a.dji2.pablo-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) Resume **

B. Failure without deleting the application and reinstalling it (Release mode)

B4X:
Registro conectado a: 0423315804994004677b
--------- beginning of system
--------- beginning of main
**************************** BaseApplication2 **************************
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
java.lang.Exception: Sub activity_permissionresult was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:219)
    at anywheresoftware.b4a.BA$2.run(BA.java:387)
    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)
(Exception) java.lang.Exception: Sub activity_permissionresult was not found.

4. The application, despite the failures, does not fall but once I connect it to the drone control it falls.

5. As I repeat, the application has no communication with the drone and on the contrary it falls

6. I appreciate the help ,tks.
 
Upvote 0

PABLO2013

Well-Known Member
Licensed User
Longtime User
thanks, greetings, reinstalled b4a and indeed I had an outdated runtinepermissions library, now the versions are 1.12 and dji 4.6, but now the error is this:

B4X:
** Activity (main) Pause event (activity is not paused). **
**************************** BaseApplication2 **************************
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
b4xmainpage$ResumableSub_B4XPage_Createdresume (java line: 264)
java.lang.NoClassDefFoundError: Failed resolution of: Ldji/sdk/sdkmanager/DJISDKManager;
    at anywheresoftware.b4a.objects.DJISDKManagerWrapper.Initialize(DJISDKManagerWrapper.java:54)
    at b4a.dji2.b4xmainpage$ResumableSub_B4XPage_Created.resume(b4xmainpage.java:264)
    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.dji2-2/base.apk"],nativeLibraryDirectories=[/data/app/b4a.dji2-2/lib/arm, /data/app/b4a.dji2-2/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;


On the other hand this is my application, for which I need to do tests, but the errors do not let me continue.
1610761763188.png
 
Upvote 0

PABLO2013

Well-Known Member
Licensed User
Longtime User
greetings, thanks for all your help. I did not know how to do the requested log, I made a capture, the application that you sent me does not work.
drone-log.png
 
Upvote 0
Top