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

Android 4.4 register error:NoClassDefFoundError #272

Closed
nanck opened this issue Mar 14, 2016 · 4 comments
Closed

Android 4.4 register error:NoClassDefFoundError #272

nanck opened this issue Mar 14, 2016 · 4 comments

Comments

@nanck
Copy link

nanck commented Mar 14, 2016

@OverRide protected void onStart() {
super.onStart();
EventBus.getDefault().register(this);
}

@Override protected void onStop() {
    super.onStop();
    EventBus.getDefault().unregister(this);
}

FATAL EXCEPTION: main
Process: com.xx.xxx, PID: 32587
java.lang.NoClassDefFoundError: android/os/PersistableBundle
at java.lang.Class.getDeclaredMethods(Native Method)
at java.lang.Class.getPublicMethodsRecursive(Class.java:894)
at java.lang.Class.getMethods(Class.java:877)
at org.greenrobot.eventbus.SubscriberMethodFinder.findUsingReflectionInSingleClass(SubscriberMethodFinder.java:157)
at org.greenrobot.eventbus.SubscriberMethodFinder.findUsingInfo(SubscriberMethodFinder.java:88)
at org.greenrobot.eventbus.SubscriberMethodFinder.findSubscriberMethods(SubscriberMethodFinder.java:64)
at org.greenrobot.eventbus.EventBus.register(EventBus.java:136)

@yusufonderd
Copy link

I'm having same issue

@skyler-b
Copy link

I think this is a duplicate of #149 -- please re-open 😄

@nanck
Copy link
Author

nanck commented Mar 15, 2016

@skyler-b thanks

@greenrobot
Copy link
Owner

I just added a FAQ for this: http://greenrobot.org/eventbus/documentation/faq/

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

4 participants