Mixpanel 5.9.3 org/jacoco/agent/rt/internal_8ff85ea/Offline
See original GitHub issueAfter updating to Mixpanel 5.9.3 we could observe the below error
Attaching the sample application (Mixpanel593.zip) which has only below changes
- build.gradle
implementation "com.mixpanel.android:mixpanel-android:5.9.3@aar"
- MainActivity.kt
MixpanelAPI.getInstance(this, "TEST")
The below issue is observed only with versions 5.9.2 and 5.9.3
2021-10-08 11:53:52.543 12344-12344/com.example.mixpanel593 E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.mixpanel593, PID: 12344
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)
at com.example.mixpanel593.MainActivity.onCreate(MainActivity.kt:12)
at android.app.Activity.performCreate(Activity.java:8051)
at android.app.Activity.performCreate(Activity.java:8031)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3612)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3796)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2214)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7842)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.jacoco.agent.rt.internal_8ff85ea.Offline" on path: DexPathList[[zip file "/data/app/~~VtYSpEsgpsmCZj1qvYPF8g==/com.example.mixpanel593-9e4dfOkKIsAFG2Nz6WGmjg==/base.apk"],nativeLibraryDirectories=[/data/app/~~VtYSpEsgpsmCZj1qvYPF8g==/com.example.mixpanel593-9e4dfOkKIsAFG2Nz6WGmjg==/lib/arm64, /system/lib64, /system_ext/lib64, /product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:218)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
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)
at com.example.mixpanel593.MainActivity.onCreate(MainActivity.kt:12)
at android.app.Activity.performCreate(Activity.java:8051)
at android.app.Activity.performCreate(Activity.java:8031)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3612)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3796)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2214)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7842)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:13
Top Results From Across the Web
Mixpanel: Product Analytics for Mobile, Web, & More
Unlock valuable customer insights to better convert, engage, and retain users with Mixpanel's powerful, self-serve product analytics. Try it free.
Read more >Product Updates - Mixpanel Help Center
We're excited to introduce Mixpanel Boards, a new collaborative workspace that replaces our existing dashboards.
Read more >Import Events
Send batches of events from your servers to Mixpanel. Each request ingests a batch of events into Mixpanel. We accept up to 2000...
Read more >The State of Product Analytics - Chapter 3 - Mixpanel
Across industries, product teams at companies in the B2B space seem to be struggling the most to measure their top focus metrics. eCommerce...
Read more >Community Guidelines - Mixpanel Help Center
To join our community on Slack, please click here. 1. General guidelines Mixpanel, Inc. (“Mixpanel”) provides the Mixpanel Community...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Facing the same issue, This works fine on
5.9.1
The issue has been fixed in v5.9.4, please sync your gradle to upgrade to the latest. Sorry for the inconvenience. I’m closing this one now, but feel free to reopen it if the problem still exists.