> the apk instrumented by Jacoco could not start up
Is there any error message?
Regards,
-marc
--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/ee34d583-c01c-4340-809b-2a6d43faf23d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> the apk instrumented by Jacoco could not start up
Is there any error message?
Regards,
-marc
On 2018-01-29 14:14, Tool Ply wrote:
Just like the title.I decompiled the apk and use ASM and Jacoco to instrument it jar separately. The result shows that ASM work well. However, the apk instrumented by Jacoco could not start up and I did not find any .exec files by command `find . -name jacoco`In order to verificate if it was caused by file read and write errors, I have tried to config 'output=none' in jacoco-agent.properties in the Dalvik and added the path to classpath. It does not work.How to fix it?--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/ee34d583-c01c-4340-809b-2a6d43faf23d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/908fd65bd2a56db22477265e6a525716%40mountainminds.com.To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+unsubscribe@googlegroups.com.
> the apk instrumented by Jacoco could not start up
Is there any error message?
Regards,
-marc
On 2018-01-29 14:14, Tool Ply wrote:
Just like the title.I decompiled the apk and use ASM and Jacoco to instrument it jar separately. The result shows that ASM work well. However, the apk instrumented by Jacoco could not start up and I did not find any .exec files by command `find . -name jacoco`In order to verificate if it was caused by file read and write errors, I have tried to config 'output=none' in jacoco-agent.properties in the Dalvik and added the path to classpath. It does not work.How to fix it?--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/ee34d583-c01c-4340-809b-2a6d43faf23d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/908fd65bd2a56db22477265e6a525716%40mountainminds.com.To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+unsubscribe@googlegroups.com.
Hi,
the problem is here that the correct JaCoCo runtime (provided by jacocoagent.jar) cannot be found:
01-30 01:07:48.355 2831 2831 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "org.jacoco.agent.rt.internal_290345e.Offline" on path: DexPathList[[zip file "/data/app/com.tsinghua.date.sample-O4Rk5hb51sr4_D96mT2MnQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.tsinghua.date.sample-O4Rk5hb51sr4_D96mT2MnQ==/lib/arm, /system/lib, /vendor/lib]]
Please include jacocoagent.jar in you application class path.
Important: The jacocoagent.jar file must be from the exact same release than the JaCoCo version used for offline instrumentation. In your case 0.8.0.
Regards,
-marc
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CAEqeQ9Gn7QQMEfJguH557ZC19g19frYXWJPd_t7jgz2%2BVjur1Q%40mail.gmail.com.

02-01 03:35:45.421 1934 1934 E AndroidRuntime: FATAL EXCEPTION: main
02-01 03:35:45.421 1934 1934 E AndroidRuntime: Process: com.tsinghua.date.sample, PID: 1934
02-01 03:35:45.421 1934 1934 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/jacoco/agent/rt/internal_290345e/Offline;
02-01 03:35:45.421 1934 1934 E AndroidRuntime: at com.tsinghua.date.sample.SettingsActivity.$jacocoInit(Unknown Source)
02-01 03:35:45.421 1934 1934 E AndroidRuntime: at com.tsinghua.date.sample.SettingsActivity.<clinit>(Unknown Source)
02-01 03:35:45.421 1934 1934 E AndroidRuntime: at java.lang.Class.newInstance(Native Method)
02-01 03:35:45.421 1934 1934 E AndroidRuntime: at android.app.Instrumentation.newActivity(Instrumentation.java:1078)
02-01 03:35:45.421 1934 1934 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2538)
02-01 03:35:45.421 1934 1934 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
02-01 03:35:45.421 1934 1934 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java)
02-01 03:35:45.421 1934 1934 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
02-01 03:35:45.421 1934 1934 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
02-01 03:35:45.421 1934 1934 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
02-01 03:35:45.421 1934 1934 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6077)
02-01 03:35:45.421 1934 1934 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
02-01 03:35:45.421 1934 1934 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
02-01 03:35:45.421 1934 1934 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
02-01 03:35:45.421 1934 1934 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "org.jacoco.agent.rt.internal_290345e.Offline" on path: DexPathList[[zip file "/data/app/com.tsinghua.date.sample-1/base.apk"],nativeLibraryDirectories=[/data/app/com.tsinghua.date.sample-1/lib/arm, /system/lib, /vendor/lib]]
02-01 03:35:45.421 1934 1934 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
02-01 03:35:45.421 1934 1934 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
02-01 03:35:45.421 1934 1934 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
02-01 03:35:45.421 1934 1934 E AndroidRuntime: ... 14 more
02-01 03:35:45.518 938 1487 W ActivityManager: Force finishing activity com.tsinghua.date.sample/.SettingsActivity

--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/196bda46-cf21-4cc2-a8a7-6d8d9553a6b0%40googlegroups.com.