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

java.lang.ClassNotFoundException when calling MixpanelAPI.getInstance in 5.9.3 #766

Closed
Waboodoo opened this issue Oct 22, 2021 · 1 comment

Comments

@Waboodoo
Copy link

I'm trying to update the Mixpanel dependency in our project from version 5.8.2 to the currently latest version 5.9.3. When I then run the app and call MixpanelAPI.getInstance the app crashes with the following stacktrace:

    java.lang.NoClassDefFoundError: Failed resolution of: Lorg/jacoco/agent/rt/internal_8ff85ea/Offline;
        at com.mixpanel.android.mpmetrics.MixpanelAPI.$jacocoInit(Unknown Source:13)
        at com.mixpanel.android.mpmetrics.MixpanelAPI.<clinit>(Unknown Source:0)
        at com.mixpanel.android.mpmetrics.MixpanelAPI.getInstance(Unknown Source:0)
       ...

2021-10-22 12:54:31.727 31851-31851/com.myapp E/AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "org.jacoco.agent.rt.internal_8ff85ea.Offline" on path: DexPathList[[zip file "/data/app/com.myapp-WIaUA3ms-D5d4iO_bzg_WQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.myapp-WIaUA3ms-D5d4iO_bzg_WQ==/lib/x86, /data/app/com.myapp-WIaUA3ms-D5d4iO_bzg_WQ==/base.apk!/lib/x86, /system/lib, /system/product/lib]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        	... 40 more
2021-10-22 12:54:31.861 31851-31851/com.myapp I/Process: Sending signal. PID: 31851 SIG: 9

The same crash happens when I downgrade to 5.9.2, but it does not occur if I downgrade to 5.9.1, so presumably some bug got introduced in 5.9.2.

I'm encountering this issue inside the Android emulator running Android SDK 29. Let me know if you need me to provide more information.

@zihejia
Copy link
Collaborator

zihejia commented Oct 22, 2021

hi @Waboodoo , the issue has been fixed in https://github.com/mixpanel/mixpanel-android/tree/v5.9.4, sorry about the inconvenience! I'm closing this one now, feel free to reopen if the problem still exists.

@zihejia zihejia closed this as completed Oct 22, 2021
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

2 participants