Android Question XUIImageBotton error

peacemaker

Expert
Licensed User
Longtime User
Hi, All and @Alejandro Moyano,
Tried to use the example from first post in B4A v.9.30 and error does not allow to try:

B4X:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Error occurred on line: 28 (Main)
java.lang.RuntimeException: java.lang.ClassNotFoundException: b4a.MyXUIControls.xuitogleimagebutton
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
    at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
    at b4a.MyXUIControls.main._activity_create(main.java:384)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at b4a.MyXUIControls.main.afterFirstLayout(main.java:104)
    at b4a.MyXUIControls.main.access$000(main.java:17)
    at b4a.MyXUIControls.main$WaitForLayout.run(main.java:82)
    at android.os.Handler.handleCallback(Handler.java:789)
    at android.os.Handler.dispatchMessage(Handler.java:98)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6944)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.ClassNotFoundException: b4a.MyXUIControls.xuitogleimagebutton
    at java.lang.Class.classForName(Native Method)
    at java.lang.Class.forName(Class.java:453)
    at java.lang.Class.forName(Class.java:378)
    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)
    ... 18 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "b4a.MyXUIControls.xuitogleimagebutton" on path: DexPathList[[zip file "/data/app/b4a.MyXUIControls-cdeRbxmdinAG9meOCX3GMA==/base.apk"],nativeLibraryDirectories=[/data/app/b4a.MyXUIControls-cdeRbxmdinAG9meOCX3GMA==/lib/arm64, /system/lib64, /system/vendor/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    ... 24 more
** Activity (main) Resume **

upload_2019-8-1_11-42-6.png
 

peacemaker

Expert
Licensed User
Longtime User
Yes, i tried before from GitHub also - it was the same error.
Now with the re-uploaded project - all is OK, thanks.
 
Upvote 0
Top