属性 'resValues' 的值无法再更改。 gradle 从 4.1.3 升级到 4.2.1 后
The value for property 'resValues' cannot be changed any further. after upgrading gradle from 4.1.3 to 4.2.1
将 gradle 从 4.1.3 升级到 4.2.1 后,我在构建应用程序时开始遇到此错误
The value for property 'resValues' cannot be changed any further.
刚更新到1.9.2
[1.9.2] 2021-06-07 Fixed an issue where the Gradle plugin would
fail with AGP 4.2 due to an IllegalStateException ("The value for
property 'resValues' cannot be changed any further.")
原来是 heapanalytics
的问题,删除 apply plugin: 'com.heapanalytics.android'
解决了问题。
因此您可以删除 heapanalytics
或延迟 gradle 更新并继续使用 4.1.3 直到堆团队解决此问题。
来自 here:
Nora from Heap support here! Our mobile team has prioritized this issue and is actively working on a release version with support for Android Studio 4.2. The current release timeline for the supported version is by the end of this June.
heapanalytics 1.9.2 问题已修复
我在尝试在 project.afterEvaluate {
块中设置 resValue 时遇到此错误。升级到 4.2 后,我只能删除 afterEvaluate,它现在可以工作了。
将 gradle 从 4.1.3 升级到 4.2.1 后,我在构建应用程序时开始遇到此错误
The value for property 'resValues' cannot be changed any further.
刚更新到1.9.2
[1.9.2] 2021-06-07 Fixed an issue where the Gradle plugin would fail with AGP 4.2 due to an IllegalStateException ("The value for property 'resValues' cannot be changed any further.")
原来是 heapanalytics
的问题,删除 apply plugin: 'com.heapanalytics.android'
解决了问题。
因此您可以删除 heapanalytics
或延迟 gradle 更新并继续使用 4.1.3 直到堆团队解决此问题。
来自 here:
Nora from Heap support here! Our mobile team has prioritized this issue and is actively working on a release version with support for Android Studio 4.2. The current release timeline for the supported version is by the end of this June.
heapanalytics 1.9.2 问题已修复
我在尝试在 project.afterEvaluate {
块中设置 resValue 时遇到此错误。升级到 4.2 后,我只能删除 afterEvaluate,它现在可以工作了。