When adding the jacoco plugin to my Gradle-built Android app, the jacocoTestReportBaseDebug cannot be created.
I added latest jacoco plugin to my build.gradle:
plugins {
....
id "jacoco"
}
jacoco {
toolVersion = "0.8.11"
}Then I ran ./gradlew tasks to view created task but the command failed with:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':tasks'.
> Could not create task ':app:jacocoTestReportBaseDebug'.
> 'void org.gradle.api.reporting.ConfigurableReport.setEnabled(boolean)'
My operating system is Windows 10 and I am using Gradle 8.2.0 with Java 17. Is Jacoco plugin incompatible with any of these versions?
Best regards
Jaka