Android Question Can't run app in release mode with Anotherdatepicker XUI lib

tufanv

Expert
Licensed User
Longtime User
Hello,

I am using Anotherdatepicker XUI lib, I have added the bsa file to my b4a project. When I add anotherdatepicker from customview in designer and run the app in debug mode, app works fine but if i run it in release mode i get :
What am i missing here?
B4X:
** Activity (main) Resume **
java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (B4XView).
    at anywheresoftware.b4a.keywords.Common$13.run(Common.java:1710)
    at android.os.Handler.handleCallback(Handler.java:883)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loop(Looper.java:227)
    at android.app.ActivityThread.main(ActivityThread.java:7822)
    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:1026)
Caused by: java.lang.RuntimeException: Object should first be initialized (B4XView).
    at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:67)
    at anywheresoftware.b4a.objects.B4XViewWrapper.getViewObject(B4XViewWrapper.java:102)
    at anywheresoftware.b4a.objects.B4XCanvas.Initialize(B4XCanvas.java:54)
    at ct.canliborsa.anotherdatepicker$ResumableSub_DesignerCreateView.resume(anotherdatepicker.java:410)
    at anywheresoftware.b4a.keywords.Common$13.run(Common.java:1708)
    ... 7 more
 

tufanv

Expert
Licensed User
Longtime User
XUI views lib has to be enabled. Found it now. It is hard to debug, normally we get "missing library reference" but not with this one. I dont know why.
 
Upvote 0
Top