build.gradle

Cannot set the value of read-only property 'classDirectories' for task '…' of type org.gradle.testing.jacoco.tasks.JacocoReport

£可爱£侵袭症+ 提交于 2020-11-28 03:52:35
问题 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. This is the file jacoco.gradle : https://pastebin.com/PHZxvMMP It's been working fine so far, I don't know what to change to make it work again. 回答1: Found the response here : https://docs.gradle.org/current/userguide