Cannot Set The Value Of Read-only Property 'classdirectories' For Task '...' Of Type Org.gradle.testing.jacoco.tasks.jacocoreport
I just updated my Android Studio to 4.0 with a new version of Gradle, and I now have an error on my build. Cannot set the value of read-only property 'classDirectories' for task ':
Solution 1:
Found the response here : https://docs.gradle.org/current/userguide/upgrading_version_5.html#other_deprecated_behaviors_and_apis
And here : Filter JaCoCo coverage reports with Gradle
For example, classDirectories
is replaced by classDirectories.from
Solution 2:
You'll need to change from classDirectories = SOME_DIRS
to getClassDirectories().setFrom(SOME_DIRS)
.
Works OK with Gradle 6.1.1
Post a Comment for "Cannot Set The Value Of Read-only Property 'classdirectories' For Task '...' Of Type Org.gradle.testing.jacoco.tasks.jacocoreport"