Android Question XUI Views error

Dirceu Renato Macan

Member
Licensed User
Longtime User
Hi everyone,

I downloaded the XUI Views Example.zip and XUI Views.b4xlib modules, and I am getting the following error when I try to run the process:

Error occurred on line: 49 (Main) (see Log.txt attached)

Does anyone know how to solve this problem?


Follows attachment to versions and screen with error.
 

Attachments

  • Log.txt
    2.5 KB · Views: 79
  • Error.png
    Error.png
    96.2 KB · Views: 92
  • Paths.png
    Paths.png
    22.1 KB · Views: 87
  • B4A Version.png
    B4A Version.png
    33.9 KB · Views: 82

Erel

B4X founder
Staff member
Licensed User
Longtime User
Best to just post the logs in the post instead of all the files and screenshots:

java.lang.RuntimeException: java.lang.ClassNotFoundException: b4a.example.b4xseekbar
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
at b4a.example.main._activity_create(main.java:413)
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.example.main.afterFirstLayout(main.java:104)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7091)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
Caused by: java.lang.ClassNotFoundException: b4a.example.b4xseekbar
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.example.b4xseekbar" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/b4a.example-ibRVYCV5Nl4Qz7IApaEBJA==/base.apk"],nativeLibraryDirectories=[/data/app/b4a.example-ibRVYCV5Nl4Qz7IApaEBJA==/lib/arm64, /system/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 24 more
** Activity (main) Resume *

This means that you haven't properly updated XUI Views. Make sure to copy the updated file to the internal libraries folder.
 
Upvote 0
Top