Hi,
I have (had?) a working project and, after updating to b4a 9.30, I'm getting an error at the Activity.LoadLayout clause, at the Activity_Create event.
Reading the logs I think it had to do with the toolbar and the B4XProgressBar and some compatibility stuff, but I don't understand what. I've deleted the view and added it again, cleaned the project... but the error stays.
I have and extend and additionalres; I paste them because they're relevant:
And, the log:
I also upload the layout file.
Thank you!
I have (had?) a working project and, after updating to b4a 9.30, I'm getting an error at the Activity.LoadLayout clause, at the Activity_Create event.
Reading the logs I think it had to do with the toolbar and the B4XProgressBar and some compatibility stuff, but I don't understand what. I've deleted the view and added it again, cleaned the project... but the error stays.
I have and extend and additionalres; I paste them because they're relevant:
B4X:
#Extends: android.support.v7.app.AppCompatActivity
#AdditionalRes: D:\Android\SDK\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms
And, the log:
B4X:
--------- beginning of system
--------- beginning of main
** Activity (main) Create, isFirst = true **
Error occurred on line: 33 (B4XProgressBar)
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
at eitor.comparator.main._activity_create(main.java:499)
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 eitor.comparator.main.afterFirstLayout(main.java:104)
at eitor.comparator.main.access$000(main.java:17)
at eitor.comparator.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:64)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:162)
... 18 more
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/widget/Toolbar;
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.shell.Shell.getCorrectClassName(Shell.java:624)
at anywheresoftware.b4a.shell.Shell.createObject(Shell.java:611)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:366)
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 eitor.comparator.main.initializeGlobals(main.java:320)
at eitor.comparator.main.afterFirstLayout(main.java:101)
... 9 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.widget.Toolbar" on path: DexPathList[[zip file "/data/app/eitor.comparator-qXiCBPU40wX-qx2yCUYz8Q==/base.apk"],nativeLibraryDirectories=[/data/app/eitor.comparator-qXiCBPU40wX-qx2yCUYz8Q==/lib/arm64, /system/lib64, /product/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)
... 20 more
** Activity (main) Resume **
I also upload the layout file.
Thank you!