Android Question b4x lib Manifest problem with classes

Alexander Stolte

Expert
Licensed User
Longtime User
Hello, i have in my project a xCustomListView, because it is a modded version of it, i have a class instead of a library. I see in the manifest.txt in the XUI Views lib. that a require lib. is the xcustomlistview. I have a sample project to demonstrate the error. What is wrong? is it forbidden to use classes instead of librarys?

XUI Views

B4X:
Logger connected to:  OnePlus ONEPLUS A6003
--------- beginning of main
Copying updated assets files (7)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Class not found: b4a.example.customlistview, trying: com.test.b4xlib.customlistview
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
Copying updated assets files (6)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Class not found: b4a.example.customlistview, trying: com.test.b4xlib.customlistview
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
Copying updated assets files (6)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Class not found: b4a.example.customlistview, trying: com.test.b4xlib.customlistview
Error occurred on line: 30 (Main)
java.lang.RuntimeException: java.lang.RuntimeException: Field clv_test 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 com.test.b4xlib.main._activity_create(main.java:386)
    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 com.test.b4xlib.main.afterFirstLayout(main.java:104)
    at com.test.b4xlib.main.access$000(main.java:17)
    at com.test.b4xlib.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:193)
    at android.app.ActivityThread.main(ActivityThread.java:6863)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.lang.RuntimeException: Field clv_test 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 (main) Resume **
 

Attachments

  • B4X lib bug.zip
    472.4 KB · Views: 131
Cookies are required to use this site. You must accept them to continue using the site. Learn more…