Android Question dji ui library

PABLO2013

Well-Known Member
Licensed User
Longtime User
Greetings, I hope you are well, could you help me to try to know what could be the error with this library, thanks

author : donmanfred


B4X:
Registro conectado a: AAASHA12SGDQJ
--------- beginning of system
--------- beginning of crash
--------- beginning of main

** Activity (main) Pause event (activity is not paused). **
** Activity (main) Resume **
** Activity (main) Pause event (activity is not paused). **
**************************** BaseApplication2 **************************
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
b4xmainpage$ResumableSub_B4XPage_Createdresume (java line: 2114)
java.lang.RuntimeException: java.lang.ClassNotFoundException: com.avalpro.dji.sdk.sample.DJIAltitudeWidgetWrapper
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
    at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
    at anywheresoftware.b4a.objects.B4XViewWrapper.LoadLayout(B4XViewWrapper.java:312)
    at com.avalpro.dji.sdk.sample.b4xmainpage$ResumableSub_B4XPage_Created.resume(b4xmainpage.java:2114)
    at com.avalpro.dji.sdk.sample.b4xmainpage._b4xpage_created(b4xmainpage.java:2060)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1085)
    at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:1040)
    at com.avalpro.dji.sdk.sample.b4xpagesmanager._createpageifneeded(b4xpagesmanager.java:523)
    at com.avalpro.dji.sdk.sample.b4xpagesmanager._showpage(b4xpagesmanager.java:860)
    at com.avalpro.dji.sdk.sample.b4xpagesmanager._addpage(b4xpagesmanager.java:200)
    at com.avalpro.dji.sdk.sample.b4xpagesmanager._addpageandcreate(b4xpagesmanager.java:207)
    at com.avalpro.dji.sdk.sample.b4xpagesmanager._initialize(b4xpagesmanager.java:711)
    at com.avalpro.dji.sdk.sample.main._activity_create(main.java:366)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at com.avalpro.dji.sdk.sample.main.afterFirstLayout(main.java:105)
    at com.avalpro.dji.sdk.sample.main.access$000(main.java:17)
    at com.avalpro.dji.sdk.sample.main$WaitForLayout.run(main.java:83)
    at android.os.Handler.handleCallback(Handler.java:883)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:7559)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
Caused by: java.lang.ClassNotFoundException: com.avalpro.dji.sdk.sample.DJIAltitudeWidgetWrapper
    at java.lang.Class.classForName(Native Method)
    at java.lang.Class.forName(Class.java:454)
    at java.lang.Class.forName(Class.java:379)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:389)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:453)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:148)
    ... 26 more
Caused by: java.lang.ClassNotFoundException: com.avalpro.dji.sdk.sample.DJIAltitudeWidgetWrapper
    ... 32 more
(RuntimeException) java.lang.RuntimeException: java.lang.ClassNotFoundException: com.avalpro.dji.sdk.sample.DJIAltitudeWidgetWrapper
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **



B4X:
**************************** BaseApplication2 **************************
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
b4xmainpage$ResumableSub_B4XPage_Createdresume (java line: 2114)
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
    at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
    at anywheresoftware.b4a.objects.B4XViewWrapper.LoadLayout(B4XViewWrapper.java:312)
    at com.avalpro.dji.sdk.sample.b4xmainpage$ResumableSub_B4XPage_Created.resume(b4xmainpage.java:2114)
    at com.avalpro.dji.sdk.sample.b4xmainpage._b4xpage_created(b4xmainpage.java:2060)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1085)
    at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:1040)
    at com.avalpro.dji.sdk.sample.b4xpagesmanager._createpageifneeded(b4xpagesmanager.java:523)
    at com.avalpro.dji.sdk.sample.b4xpagesmanager._showpage(b4xpagesmanager.java:860)
    at com.avalpro.dji.sdk.sample.b4xpagesmanager._addpage(b4xpagesmanager.java:200)
    at com.avalpro.dji.sdk.sample.b4xpagesmanager._addpageandcreate(b4xpagesmanager.java:207)
    at com.avalpro.dji.sdk.sample.b4xpagesmanager._initialize(b4xpagesmanager.java:711)
    at com.avalpro.dji.sdk.sample.main._activity_create(main.java:366)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at com.avalpro.dji.sdk.sample.main.afterFirstLayout(main.java:105)
    at com.avalpro.dji.sdk.sample.main.access$000(main.java:17)
    at com.avalpro.dji.sdk.sample.main$WaitForLayout.run(main.java:83)
    at android.os.Handler.handleCallback(Handler.java:883)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:7559)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:64)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:162)
    ... 26 more
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Ldji/ux/widget/BatteryWidget;
    at anywheresoftware.b4a.objects.DJIBatteryWidgetWrapper._initialize(DJIBatteryWidgetWrapper.java:47)
    ... 29 more
Caused by: java.lang.ClassNotFoundException: dji.ux.widget.BatteryWidget
    ... 30 more
(RuntimeException) java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
t could be the error
The library is old, not up-to-date, not maintained (i do not own a drone any longer). I Suggest NOT to use it any longer.
 
Last edited:
Upvote 0

PABLO2013

Well-Known Member
Licensed User
Longtime User
Greetings Donmafred and sorry for the insistence ... but could you guide me to what could be the problem. I would try to update it, I say it is a valuable contribution of yours and it would be a shame not to use it
 
Upvote 0

PABLO2013

Well-Known Member
Licensed User
Longtime User
Greetings Donmafred and sorry for the insistence ... but could you guide me to how make a new library, tks
 
Upvote 0

PABLO2013

Well-Known Member
Licensed User
Longtime User
yes. i know java. only need you explain me a way in general. tks. for example how is the more code used in b4a for make a costum view...
 
Upvote 0

Similar Threads

  • Question
Android Question Dji UI
Replies
0
Views
1K
Replies
2
Views
664
Replies
1
Views
735
Replies
9
Views
1K
Top