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

前端 未结 2 724
小蘑菇
小蘑菇 2021-01-03 21:00

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 \'classDi

2条回答
  •  没有蜡笔的小新
    2021-01-03 21:25

    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

提交回复
热议问题