android jacoco coverage shows 0% with gradle however there are 95% tests covering code
问题 I'm trying to get jacoco create a code coverage report for my android test project. Gradle version classpath 'com.android.tools.build:gradle:2.0.0' I have the following in build.gradle: apply plugin: 'com.android.application' apply plugin: 'jacoco' jacoco { toolVersion = "0.7.1.201405082137" } android { buildTypes { release { } debug { testCoverageEnabled true } } } It shows report as below image There is almost 95% of the code coverage (When I ran the same report in 2015 it showed the report