Android Question MSMaterialDrawer and targetSdkVersion=28 and B4A ver 9.30

Anser

Well-Known Member
Licensed User
Longtime User
Hi,
I updated my B4A version to 9.30 from v 9.00

Now one of my application which was using MSMaterialDrawer is failing. When I click on the Burger Menu nothing is happening at the same time I could see the following error message on the Logs. This was working fine in B4A 9.00


android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class android.support.v4.widget.DrawerLayout
Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class android.support.v4.widget.DrawerLayout
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.widget.DrawerLayout" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.myappname.publicapp-yhPgZ2-sLEV9vcDsFb3JLQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.myappname.publicapp-yhPgZ2-sLEV9vcDsFb3JLQ==/lib/arm64, /system/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)
at android.view.LayoutInflater.createView(LayoutInflater.java:645)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:829)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769)
at android.view.LayoutInflater.inflate(LayoutInflater.java:531)
at android.view.LayoutInflater.inflate(LayoutInflater.java:461)
at com.mikepenz.materialdrawer.Drawer.withDrawerLayout(Drawer.java:334)
at com.mikepenz.materialdrawer.Drawer.build(Drawer.java:1090)
at com.maximussoft.msmaterialdrawer.MSMaterialDrawerBuilder.Build(MSMaterialDrawerBuilder.java:122)
at com.myappname.publicapp.homepage._buildmaterialdrawer(homepage.java:1040)
at com.myappname.publicapp.homepage._activity_create(homepage.java:541)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at com.myappname.publicapp.homepage.afterFirstLayout(homepage.java:104)
at com.myappname.publicapp.homepage.access$000(homepage.java:17)
at com.myappname.publicapp.homepage$WaitForLayout.run(homepage.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:216)
at android.app.ActivityThread.main(ActivityThread.java:7263)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
running waiting messages (1)


I have updated the Andoid SDK to the latest. Did the Jetify trick too

Any help will be appreciated.
 
Make sure that the library is in the additional libraries folder and not in the internal folder. Clean the project (Ctrl + P) after you run the jetifier tool.
The library is in the additional libraries folder.
Once again used the jetifier tool
I cleaned the project (Ctrl + P)
Unfortunately the same error.

Really interested to know the status from other MSMaterialDrawer users here

For new projects I recommend to use B4XDrawer.
Definitely yes
 
Last edited:
Upvote 0
Back
Top