Task jacocoTestReportBaseDebug cannot be created

77 views
Skip to first unread message

Jaka Kordež

unread,
Jan 5, 2024, 8:08:52 AMJan 5
to JaCoCo and EclEmma Users
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
Reply all
Reply to author
Forward
0 new messages