Android studio3.3 variantOutput.getProcessResources()已过时,并已替换为'variantOutput.getProcessResourcesProvider()

jo *_* jo 7 android gradle

什么是波纹管警告:

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
Run Code Online (Sandbox Code Playgroud)

Hom*_*ang 15

这是https://services.gradle.org/distributions/gradle-4.10.1-all.zip中的错误。

您需要回退至gradle-wrapper.properties中的https://services.gradle.org/distributions/gradle-4.6-all.zip

dependencies {
    classpath 'com.android.tools.build:gradle:3.2.1' //roll back to this version
Run Code Online (Sandbox Code Playgroud)

我已经处理了四个小时的错误。我放弃了,所以我回滚到了上一个版本。现在很完美。因此,让我们等待更新的版本。暂不升级!