I tried the Missing Jacoco Components Jar
<https://github.com/uriel-frankel/android-code-coverage/raw/master/hellojacoco/android-jacoco-the-missing.jar>
in
this questions java.lang.NoClassDefFoundError: Failed resolution of:
Lorg/jacoco/agent/rt/internal_14f7ee5/Offline
<https://stackoverflow.com/questions/39195754/java-lang-noclassdeffounderror-failed-resolution-of-lorg-jacoco-agent-rt-inter>

The classpath in android is:

/sdcard/app_test/:/sdcard/app_test/lib/org.jacoco.report-0.8.0.jar:/sdcard/app_test/lib/org.jacoco.report-0.8.0.201801022044.jar:/sdcard/app_test/lib/org.jacoco.core-0.8.0.jar:/sdcard/app_test/lib/org.jacoco.core-0.8.0.201801022044.jar:/sdcard/app_test/lib/org.jacoco.cli-0.8.0-nodeps.jar:/sdcard/app_test/lib/org.jacoco.ant-0.8.0.jar:/sdcard/app_test/lib/org.jacoco.ant-0.8.0.201801022044.jar:/sdcard/app_test/lib/org.jacoco.ant-0.8.0-nodeps.jar:/sdcard/app_test/lib/org.jacoco.agent-0.8.0.jar:/sdcard/app_test/lib/org.jacoco.agent-0.8.0.201801022044.jar:/sdcard/app_test/lib/org.jacoco.agent-0.8.0-runtime.jar:/sdcard/app_test/lib/junit-4.12.jar:/sdcard/app_test/lib/jacococli.jar:/sdcard/app_test/lib/jacocoant.jar:/sdcard/app_test/lib/jacocoagent.jar:/sdcard/app_test/lib/hamcrest-core-1.3.jar:/sdcard/app_test/lib/asm-5.2.jar:/sdcard/app_test/lib/args4j-2.0.28.jar:/sdcard/app_test/lib/android-jacoco-the-missing.jar:

it doesn't work👽

2018-01-30 0:51 GMT+08:00 Marc Hoffmann <[email protected]>:

> > 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 [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jacoco/ee34d583-c01c-4340-809b-2a6d43faf23d%40googlegroups.com
> <https://groups.google.com/d/msgid/jacoco/ee34d583-c01c-4340-809b-2a6d43faf23d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jacoco/908fd65bd2a56db22477265e6a525716%40mountainminds.com
> <https://groups.google.com/d/msgid/jacoco/908fd65bd2a56db22477265e6a525716%40mountainminds.com?utm_medium=email&utm_source=footer>
> .
>
> 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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/CAEqeQ9H%3D2-SKpJw59ms9AEbGd8XsLtdYfOAS8HoVGW4SCOxeCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to