On Wednesday, August 30, 2017 at 5:53:15 PM UTC+2, [email protected] 
wrote:
>
> All,
>
> I ran into this crasher in my Android application. This happens on launch 
> when the jacoco plugin has been applied to a gradle plugin we have written, 
> which is applied to our project. I was able to find some documentation on 
> this issue on the [FAQ.](http://www.jacoco.org/jacoco/trunk/doc/faq.html)
>
> I have been added the following to my build.gradle and it resolves the 
> crasher:
>  //required for jacoco
> //    compile 'org.jacoco:org.jacoco.agent:0.7.9:runtime'
> However, I don't understand why this is necessary. Why is jacoco effecting 
> my runtime, and does anyone know of a way to turn off offline mode? For 
> some reason even without the additional dependency my instrumentation tests 
> run fine on a device w/o crashing. Code coverage is coming through fine as 
> well w/o this dependency.
>

Don't you think that statements
fine w/o dependency
and
resolves by addition of dependency
are contradicting each other?

As stated in FAQ this dependency is absolutely mandatory for the case of 
offline instrumentation. And offline instrumentation is the only way to get 
coverage on Android, simply because there is no such thing as Java agent on 
Android.

Classes instrumented by different JaCoCo versions will have dependency on 
different versions of package "internal_*". Based on your contradictional 
description, the only wild guess - is that some of your tools/plugins are 
doing offline instrumentation by one version and automatically add 
corresponding dependency, while some others are doing offline 
instrumentation by another version and do not add dependency.

All in all watch out what your build, tools and plugins are doing and how 
they do this.

-- 
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/65ed0785-b3eb-4a14-8671-829f8f077ea3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to