I have a simple Android app developed in Android studio. When I built it with Gradle 4.10.1, there was no warning or error. When I updated Gradle to Version 5.1.1, I got the following warning:
Task :app:processDebugResources UP-TO-DATE
Changing the value for a property with a final value has been deprecated. This will fail with an error in Gradle 6.0.
Here is more details about the issue:
Task :app:processDebugResources UP-TO-DATE Changing the value for a property with a final value has been deprecated. This will fail with an error in Gradle 6.0.
The problem is: I have no idea what needs to be done to the Gradle scripts. I suspect the warning came from codes not controlled by me. That’s why I call it a “bug”.
As near as I can tell, going by the scans, something in the com.android.application plugin is to blame. My best guess would be probably somewhere around ProducersMap.kt:148:
...
at com.android.build.gradle.internal.scope.ProducersMap$Producer.resolve(ProducersMap.kt:148)
at com.android.build.gradle.internal.scope.ProducersMap$Producers.resolveAll(ProducersMap.kt:101)
at com.android.build.gradle.internal.scope.ProducersMap$Producers.resolveAllAndReturnLast(ProducersMap.kt:106)
at com.android.build.gradle.internal.scope.ProducersMap$Producers$injectable$1.transform(ProducersMap.kt:91)
at com.android.build.gradle.internal.scope.ProducersMap$Producers$injectable$1.transform(ProducersMap.kt:78)
...
The scans say you’re already using the most up-to-date Android plugin. So I don’t think there’s anything you can do about the warning. Except wait until Google refactors their plugin to align with Gradle 6.0.