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 ':app:testNameOfMyFlavorDebugUnitTestCoverage' of type org.gradle.testing.jacoco.tasks.JacocoReport.
It's been working fine so far, I don't know what to change to make it work again.
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
classDirectories
classDirectories.from
2.1m questions
2.1m answers
60 comments
57.0k users