Android: Jacoco code coverage is not generating after gradle upgrade to 7.0.x & jdk 11

2.3k Views Asked by At

Android: Jacoco code coverage is not generating after gradle upgrade to 7.0.x & jdk 11 with testCoverageEnabled true. It is working perfect with gradle 4.2.x & jdk 8.

I tried removing testCoverageEnabled true with gradle 7.0.x & it again started working. It will work even if set it to false (testCoverageEnabled false). But the jacoco document says mark it as true only to generate test coverage report.

with gradle 4.2 and jdk 8 it worked fine & now with gradle 7.0 and jdk 11 it's working after removing the boolean.

can anyone help me to understand a more on this that how it is working if removed testCoverageEnabled true or it set to false?

1

There are 1 best solutions below

0
Alt-Cat On

In case anyone misses the comment by dev2505, removing testCoverageEnabled completely, appears to fix this.