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

Jacoco Instrumented class File #4

Open
MoGoes opened this issue Nov 5, 2021 · 0 comments
Open

Jacoco Instrumented class File #4

MoGoes opened this issue Nov 5, 2021 · 0 comments

Comments

@MoGoes
Copy link

MoGoes commented Nov 5, 2021

Hi!
I'm having trouble integrating the DA SDK into my prototype Android app. Anytime the app starts up it crashes when DA initialises at DigitalAnalytics.startup(). The reason for that, I found out are jacoco instrumented class files, this case DigitalAnalytics.class, probably here ln407-408:

public static Boolean startup(Application application) { boolean[] var1 = $jacocoInit(); ...

When using an older version (commit 0fb3cca) the application starts up and it all works like charm - as there are no jacoco instrumentations there.

Is it possible to provide a class file without jacoco instrumentation or could you help me resolve this issue?

Following exception raised:
E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.myapplication, PID: 25632 java.lang.NoClassDefFoundError: Failed resolution of: Lorg/jacoco/agent/rt/internal_8ff85ea/Offline; at com.digitalanalytics.api.DigitalAnalytics.$jacocoInit(Unknown Source:13) at com.digitalanalytics.api.DigitalAnalytics.startup(Unknown Source:2) at com.example.phonicdroid.MainActivity.onCreate(MainActivity.java:44) at android.app.Activity.performCreate(Activity.java:7802) at android.app.Activity.performCreate(Activity.java:7791) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) 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:2016) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7356) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) Caused by: java.lang.ClassNotFoundException: Didn't find class "org.jacoco.agent.rt.internal_8ff85ea.Offline" on path: DexPathList[[zip file "/data/app/com.example.myapplication-bpYrXGZbb6L74iWPH1fVsQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.myapplication-bpYrXGZbb6L74iWPH1fVsQ==/lib/x86, /system/lib, /system/product/lib]] ) 

Best

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

1 participant