-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Problem initializing ActiveAndroid in API 21 #283
Comments
I can confirm this issue. |
I get a very similar, but not exactly the same, error on initialization: java.lang.NoClassDefFoundError: com.google.android.gms.internal.ir I'm not so sure its an ART issue as it worked on my Nexus 5 running 4.4.2 with ART. The initialization error happens on Android 5.0. |
After some debugging it seems that in my case ActiveAndroid chokes on a class that is included in another lib (android-logging-log4j-1.0.3.jar). It dies with a NoClassDefFoundError. As @roms mentions this only happens on Android 5.0 (emulator), not on older versions. I've added a catch for this particular error and now it seems to work again:
Not sure if this is the correct solution, but it seems to work for now. |
I get this error in Android 5 on Nexus 4 and Nexus 5: java.lang.NoClassDefFoundError: org.codehaus.jackson.jaxrs.JacksonJsonProvider The problem seems to be that my application class extends the ActiveAndroid application class. public class MyApplicationClass extends Application {
} |
Downloading source code and building the jar solves the problem. |
Can I expect a release in maven repo with this issue fixed anytime soon? |
When I'm trying to initialize ActiveAndroid in Android 5.0, it crashes with this error: java.lang.NoClassDefFoundError: org.mockito.internal.runners.RunnerImpl . I read about this and it seems to be related with ART.
related links:
mockito/mockito#71
https://code.google.com/p/dexmaker/issues/detail?id=39
The text was updated successfully, but these errors were encountered: