Android Gradle: Jacoco error

This tutorial fixes Jacoco 4.6 issues when updating to Gradle 4.0.1 and wrapper 6.6.1.

Cannot set the value of read-only property 'executionData' for task ':client:jacocoTestFlavorDebugUnitTestReport' of type org.gradle.testing.jacoco.tasks.JacocoReport.

In the last version something is broken between Jacoco’s gradle plugin and Gradle, thanks to this fork for the solution. With Jacoco and Gradle we generate a test code coverage report for our Android project, shows the percentage of unit tests coverage. If we configure Codecov we can add our unit test…