The application is compiling successfully but while running I'm getting the following error
I've used the latest android v4 support library and also used all the libraries mentioned here.
B4X:
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 249)
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/widget/DrawerLayout$LayoutParams;
at de.amberhome.navdrawer.NavigationDrawer.Initialize2(NavigationDrawer.java:82)
at de.amberhome.navdrawer.NavigationDrawer.Initialize(NavigationDrawer.java:67)
at de.amberhome.NavDrawer.main._activity_create(main.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:167)
at de.amberhome.NavDrawer.main.afterFirstLayout(main.java:89)
at de.amberhome.NavDrawer.main.access$100(main.java:16)
at de.amberhome.NavDrawer.main$WaitForLayout.run(main.java:74)
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.ClassNotFoundException: Didn't find class "android.support.v4.widget.DrawerLayout$LayoutParams" on path: DexPathList[[zip file "/data/app/de.amberhome.NavDrawer-1/base.apk"],nativeLibraryDirectories=[/data/app/de.amberhome.NavDrawer-1/lib/arm, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 15 more
Suppressed: java.lang.ClassNotFoundException: android.support.v4.widget.DrawerLayout$LayoutParams
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 16 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
--------- beginning of crash
I've used the latest android v4 support library and also used all the libraries mentioned here.