I'm trying to create a new wrapper for the Mike Penz MaterialDrawer library.
My wrapper depends on AppCompat library and several *.aar libraries. I have the problem that I get an NoClassDefFoundError. But I'm sure the class is in one of the referenced *.aar files.
I have added the custom libs and a small example project. You will need official AppCompat and XMLLayoutbuilder libraries.
The HeaderAdapter should be in the fastadapter-1.5.5.aar. It seems that it is not included into the apk.
Any ideas?
My wrapper depends on AppCompat library and several *.aar libraries. I have the problem that I get an NoClassDefFoundError. But I'm sure the class is in one of the referenced *.aar files.
main_activity_create (java line: 408)
java.lang.NoClassDefFoundError: com.mikepenz.fastadapter.adapters.HeaderAdapter
at com.mikepenz.materialdrawer.DrawerBuilder.<init>(DrawerBuilder.java:868)
at de.amberhome.objects.materialdrawer.MDDrawerBuilderWrapper.Initialize(MDDrawerBuilderWrapper.java:37)
at de.amberhome.appcompat.toolbarexample1.main._activity_create(main.java:408)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at de.amberhome.appcompat.toolbarexample1.main.afterFirstLayout(main.java:102)
at de.amberhome.appcompat.toolbarexample1.main.access$000(main.java:17)
at de.amberhome.appcompat.toolbarexample1.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: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)
main_activity_create (java line: 408)
java.lang.NoClassDefFoundError: com.mikepenz.fastadapter.adapters.HeaderAdapter
at com.mikepenz.materialdrawer.DrawerBuilder.<init>(DrawerBuilder.java:868)
at de.amberhome.objects.materialdrawer.MDDrawerBuilderWrapper.Initialize(MDDrawerBuilderWrapper.java:37)
at de.amberhome.appcompat.toolbarexample1.main._activity_create(main.java:408)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at de.amberhome.appcompat.toolbarexample1.main.afterFirstLayout(main.java:102)
at de.amberhome.appcompat.toolbarexample1.main.access$000(main.java:17)
at de.amberhome.appcompat.toolbarexample1.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: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)
I have added the custom libs and a small example project. You will need official AppCompat and XMLLayoutbuilder libraries.
The HeaderAdapter should be in the fastadapter-1.5.5.aar. It seems that it is not included into the apk.
Any ideas?