SimonVT/android-menudrawer

Noclass definition found

Opened this issue · 0 comments

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)