What is bellow warning:
WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with 'variantOutput.getProcessResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
Affected Modules: app
It's the bug in https://services.gradle.org/distributions/gradle-4.10.1-all.zip .
You need to roll back to https://services.gradle.org/distributions/gradle-4.6-all.zip in gradle-wrapper.properties
And
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1' //roll back to this version
I have deal with this bug for 4 hours. I gave up so I rolled back to last version. It's perfect now. So let's wait for the newer version. Don't upgrade, yet!
run a gradle task with this flag -Pandroid.debug.obsoleteApi=true
and it will let you know where the obsolete feature is being used.
After identifying where the issue is, you can try updating as the message suggests
ex. .gradlew app:assembleDebug -Pandroid.debug.obsoleteApi=true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With