I'm trying to run the original demo application from the CustomListView library and get the following error: (https://www.b4x.com/android/forum/t...xible-list-based-on-scrollview.19567/#content)
LogCat connected to: B4A-Bridge: asus P01Z
--------- beginning of main
Connected to B4A-Bridge (Wifi)
Connected to B4A-Bridge (Wifi)
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:anywheresoftware.b4a.samples.customlistview
Copying updated assets files (3)
** Activity (main) Create, isFirst = true **
java.lang.NoSuchMethodError: No static method ObjectToCharSequence(Ljava/lang/ObjectLjava/lang/CharSequence; in class Lanywheresoftware/b4a/BA; or its super classes (declaration of 'anywheresoftware.b4a.BA' appears in /data/app/anywheresoftware.b4a.samples.customlistview-2/base.apk)
at anywheresoftware.b4a.samples.customlistview.customlistview._insertattextitem(customlistview.java:442)
at anywheresoftware.b4a.samples.customlistview.customlistview._addtextitem(customlistview.java:52)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:753)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:343)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:247)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at anywheresoftware.b4a.samples.customlistview.main.afterFirstLayout(main.java:102)
at anywheresoftware.b4a.samples.customlistview.main.access$000(main.java:17)
at anywheresoftware.b4a.samples.customlistview.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5255)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)
** Activity (main) Resume **
An error occurred:
(Line: 37) End Sub
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
** Activity (main) Resume **
It's a problem with the newer versions of library on newer version of Android? because we ran the example on an older tablet and it worked ... Thank you!
LogCat connected to: B4A-Bridge: asus P01Z
--------- beginning of main
Connected to B4A-Bridge (Wifi)
Connected to B4A-Bridge (Wifi)
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:anywheresoftware.b4a.samples.customlistview
Copying updated assets files (3)
** Activity (main) Create, isFirst = true **
java.lang.NoSuchMethodError: No static method ObjectToCharSequence(Ljava/lang/ObjectLjava/lang/CharSequence; in class Lanywheresoftware/b4a/BA; or its super classes (declaration of 'anywheresoftware.b4a.BA' appears in /data/app/anywheresoftware.b4a.samples.customlistview-2/base.apk)
at anywheresoftware.b4a.samples.customlistview.customlistview._insertattextitem(customlistview.java:442)
at anywheresoftware.b4a.samples.customlistview.customlistview._addtextitem(customlistview.java:52)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:753)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:343)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:247)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at anywheresoftware.b4a.samples.customlistview.main.afterFirstLayout(main.java:102)
at anywheresoftware.b4a.samples.customlistview.main.access$000(main.java:17)
at anywheresoftware.b4a.samples.customlistview.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5255)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)
** Activity (main) Resume **
An error occurred:
(Line: 37) End Sub
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
** Activity (main) Resume **
It's a problem with the newer versions of library on newer version of Android? because we ran the example on an older tablet and it worked ... Thank you!