Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Noclass definition found #266

Open
crashfiredeep opened this issue Jan 11, 2016 · 0 comments
Open

Noclass definition found #266

crashfiredeep opened this issue Jan 11, 2016 · 0 comments

Comments

@crashfiredeep
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant