I built part of the project into a separate project where I use the CustomListView XUI lib and everything works smoothly.
But when I copied the files to the big project and I try to run the screens from the small project the app crashes.
And I get this log:
line 64 is the - Activity.LoadLayout("imgsMainLy")
In the big project I use the xui views library as well. Could this be the problem?
And if not what can cause it?
But when I copied the files to the big project and I try to run the screens from the small project the app crashes.
And I get this log:
Error occurred on line: 64 (MainImg)
java.lang.RuntimeException: java.lang.RuntimeException: Field mainimgclv1 was declared with the wrong type.
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
at b4a.example.mainimg._activity_create(mainimg.java:455)
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.mainimg.afterFirstLayout(mainimg.java:104)
at b4a.example.mainimg.access$000(mainimg.java:17)
at b4a.example.mainimg$WaitForLayout.run(mainimg.java:82)
at android.os.Handler.handleCallback(Handler.java:836)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6251)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
Caused by: java.lang.RuntimeException: Field mainimgclv1 was declared with the wrong type.
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:431)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:454)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:148)
... 18 more
** Activity (mainimg) Resume **
line 64 is the - Activity.LoadLayout("imgsMainLy")
In the big project I use the xui views library as well. Could this be the problem?
And if not what can cause it?
Last edited: