android-checkout-sdk icon indicating copy to clipboard operation
android-checkout-sdk copied to clipboard

Application crashes when launched Caused by: java.lang.ClassNotFoundException: Didn't find class "org.jacoco.agent.rt.internal_1f1cc91.Offline"

Open sunil553 opened this issue 2 years ago • 3 comments

Android App crashes when integrated with Paypal SDK

We have integrated with latest PayPal SDK version 0.8.7 , After the integration android app starts crashing with below Logs Caused by: java.lang.ClassNotFoundException: Didn't find class "org.jacoco.agent.rt.internal_1f1cc91.Offline"

In our application we are using Jacoco for code coverage and version is jacoco { toolVersion = "0.8.7" }

I suspect this might be some dependency conflict issue kindly help me in sorting this issue .

Android Logs below

**Caused by: java.lang.ClassNotFoundException:** Didn't find class "org.jacoco.agent.rt.internal_1f1cc91.Offline" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.jd.jdsports.debug-CqYV0Py-KWszsqllvyaNQg==/base.apk"],nativeLibraryDirectories=[/data/app/com.jd.jdsports.debug-CqYV0Py-KWszsqllvyaNQg==/lib/arm64, /data/app/com.jd.jdsports.debug-CqYV0Py-KWszsqllvyaNQg==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
                                                                                                	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
                                                                                                	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
                                                                                                	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
                                                                                                	at 

sunil553 avatar Dec 22 '22 08:12 sunil553

Hi Team,

We are also facing a similar kind of issue, is there any update on the above please?

dantuswaroop avatar Jan 03 '23 11:01 dantuswaroop

Hi Team ,

Any Luck ?

sunil553 avatar Jan 09 '23 13:01 sunil553

Hey @sunil553 and @dantuswaroop - very sorry for the delayed response. The Jacoco library should be removed in the next release of the SDK. This should prevent this crash.

tdchow avatar Mar 15 '23 15:03 tdchow