SimonVT / android-menudrawer

*DEPRECATED* A slide-out menu implementation, which allows users to navigate between views in your app.
http://simonvt.github.com/android-menudrawer/
Apache License 2.0
2.59k stars 1.11k forks source link

I am a tiro to Android.It have errors when I run the samples . #178

Closed xiaobei3120 closed 11 years ago

xiaobei3120 commented 11 years ago

08-22 15:45:05.135: E/AndroidRuntime(429): FATAL EXCEPTION: main 08-22 15:45:05.135: E/AndroidRuntime(429): java.lang.NoClassDefFoundError: net.simonvt.menudrawer.R$styleable 08-22 15:45:05.135: E/AndroidRuntime(429): at net.simonvt.menudrawer.MenuDrawer.initDrawer(MenuDrawer.java:550) 08-22 15:45:05.135: E/AndroidRuntime(429): at net.simonvt.menudrawer.DraggableDrawer.initDrawer(DraggableDrawer.java:174) 08-22 15:45:05.135: E/AndroidRuntime(429): at net.simonvt.menudrawer.SlidingDrawer.initDrawer(SlidingDrawer.java:32) 08-22 15:45:05.135: E/AndroidRuntime(429): at net.simonvt.menudrawer.MenuDrawer.(MenuDrawer.java:543) 08-22 15:45:05.135: E/AndroidRuntime(429): at net.simonvt.menudrawer.MenuDrawer.(MenuDrawer.java:538) 08-22 15:45:05.135: E/AndroidRuntime(429): at net.simonvt.menudrawer.MenuDrawer.(MenuDrawer.java:534) 08-22 15:45:05.135: E/AndroidRuntime(429): at net.simonvt.menudrawer.MenuDrawer.(MenuDrawer.java:527) 08-22 15:45:05.135: E/AndroidRuntime(429): at net.simonvt.menudrawer.DraggableDrawer.(DraggableDrawer.java:157) 08-22 15:45:05.135: E/AndroidRuntime(429): at net.simonvt.menudrawer.SlidingDrawer.(SlidingDrawer.java:15) 08-22 15:45:05.135: E/AndroidRuntime(429): at net.simonvt.menudrawer.MenuDrawer.createMenuDrawer(MenuDrawer.java:487) 08-22 15:45:05.135: E/AndroidRuntime(429): at net.simonvt.menudrawer.MenuDrawer.attach(MenuDrawer.java:452) 08-22 15:45:05.135: E/AndroidRuntime(429): at net.simonvt.menudrawer.samples.BaseListSample.onCreate(BaseListSample.java:35) 08-22 15:45:05.135: E/AndroidRuntime(429): at net.simonvt.menudrawer.samples.LeftDrawerSample.onCreate(LeftDrawerSample.java:22) 08-22 15:45:05.135: E/AndroidRuntime(429): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 08-22 15:45:05.135: E/AndroidRuntime(429): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 08-22 15:45:05.135: E/AndroidRuntime(429): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 08-22 15:45:05.135: E/AndroidRuntime(429): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 08-22 15:45:05.135: E/AndroidRuntime(429): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 08-22 15:45:05.135: E/AndroidRuntime(429): at android.os.Handler.dispatchMessage(Handler.java:99) 08-22 15:45:05.135: E/AndroidRuntime(429): at android.os.Looper.loop(Looper.java:123) 08-22 15:45:05.135: E/AndroidRuntime(429): at android.app.ActivityThread.main(ActivityThread.java:4627) 08-22 15:45:05.135: E/AndroidRuntime(429): at java.lang.reflect.Method.invokeNative(Native Method) 08-22 15:45:05.135: E/AndroidRuntime(429): at java.lang.reflect.Method.invoke(Method.java:521) 08-22 15:45:05.135: E/AndroidRuntime(429): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 08-22 15:45:05.135: E/AndroidRuntime(429): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 08-22 15:45:05.135: E/AndroidRuntime(429): at dalvik.system.NativeStart.main(Native Method)

mariaCP commented 11 years ago

I have the same error, how can I solve it?? thank you!

JitenBenzatine commented 9 years ago

Clean your project first and then try to run it again