Android Question B4XDrawer not working after update

Paolo Trevisiol

Member
Licensed User
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Error occurred on line: 217 (B4XDrawer)
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
at anywheresoftware.b4a.objects.B4XViewWrapper.LoadLayout(B4XViewWrapper.java:292)
at b4a.example.main._activity_create(main.java:391)
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:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
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)
... 19 more
Caused by: java.lang.NoClassDefFoundError: de.amberhome.objects.internal.InternalToolbar
at de.amberhome.objects.appcompat.ACToolbarLightWrapper.innerInitialize(ACToolbarLightWrapper.java:28)
at anywheresoftware.b4a.objects.ViewWrapper.Initialize(ViewWrapper.java:67)
at de.amberhome.objects.appcompat.ACToolBarWrapper.Initialize(ACToolBarWrapper.java:66)
at de.amberhome.objects.appcompat.ACToolBarWrapper._initialize(ACToolBarWrapper.java:147)
... 22 more
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
You ran Jetifier, right?
yes
Do you get the same error with this example
yes. Just ran the example

 
Upvote 0

Rubsanpe

Active Member
Licensed User
Hi, I'm using B4XDrawer in my application and I don't have any problems after upgrading to 9.30 and using Jetifier with all my libraries.

I just downloaded the example again and here it works well.

Rubén
 
Upvote 0

Rubsanpe

Active Member
Licensed User
Hi. I just tested Android versions 4.4, 5.1 and 9. Maybe it could be a problem updating the SDK? I have it completely updated.

Rubén
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
My guess is that there is a copy of AppCompat.jar or .aar in your internal libraries folder.
No, the is no such file.

I just redownloaded Appcompat v4.0 and added them to the additional libs folder.

And in Additional libs are only the three provided files from the AppCompat Thread. V4.0

from the AppCompat.xml
<version>4.0</version>
<author>Markus Stipp</author>
<dependsOn>com.android.support:appcompat-v7</dependsOn>
<dependsOn>AppCompat.aar</dependsOn>



Jetifier does not find anything to Jetify.
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
Do I see a period in your folders? Get rid of that and try again. Windows hates weird characters like that.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…