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

Noclass definition found #266

Open crashfiredeep opened 8 years ago

crashfiredeep commented 8 years ago

MenuDrawer mDrawer;

mDrawer = MenuDrawer.attach(Temp.this); // mDrawer.setContentView(R.layout.activity_sample); mDrawer.setMenuView(R.layout.temp_navigation);

    mImageView = (ImageView) findViewById(R.id.left_drawer_image);

    mImageView.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            mDrawer.openMenu();
        }
    });

I have done above code in onCreate() method of Temp.java Activity. and i have the error like

java.lang.NoClassDefFoundError: net.simonvt.menudrawer.R$attr at net.simonvt.menudrawer.MenuDrawer.(MenuDrawer.java:542) at net.simonvt.menudrawer.MenuDrawer.(MenuDrawer.java:538) at net.simonvt.menudrawer.MenuDrawer.(MenuDrawer.java:531) at net.simonvt.menudrawer.DraggableDrawer.(DraggableDrawer.java:159) at net.simonvt.menudrawer.SlidingDrawer.(SlidingDrawer.java:15) at net.simonvt.menudrawer.MenuDrawer.createMenuDrawer(MenuDrawer.java:491) at net.simonvt.menudrawer.MenuDrawer.attach(MenuDrawer.java:456) at net.simonvt.menudrawer.MenuDrawer.attach(MenuDrawer.java:442) at net.simonvt.menudrawer.MenuDrawer.attach(MenuDrawer.java:419) at net.simonvt.menudrawer.MenuDrawer.attach(MenuDrawer.java:408) at com.waycreon.UserApp.Temp.onCreate(Temp.java:78) at android.app.Activity.performCreate(Activity.java:5133) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261) at android.app.ActivityThread.access$600(ActivityThread.java:141) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5103) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(Native Method)