I try to use clipboard library according to url :https://www.b4x.com/android/forum/threads/clipboard-library.7382/,and i got the error below:
if you can help me fix out this problem,thanks in advance.
if you can help me fix out this problem,thanks in advance.
B4X:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 382)
java.lang.RuntimeException: java.lang.ClassCastException: b4a.util.BClipboard cannot be cast to anywheresoftware.b4a.ObjectWrapper
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
at autoapp.cary.main._activity_create(main.java:382)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
at autoapp.cary.main.afterFirstLayout(main.java:115)
at autoapp.cary.main.access$000(main.java:28)
at autoapp.cary.main$WaitForLayout.run(main.java:93)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7425)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Caused by: java.lang.ClassCastException: b4a.util.BClipboard cannot be cast to anywheresoftware.b4a.ObjectWrapper
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:415)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:454)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:454)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:148)
... 14 more