Gradle 6.5未构建:ANDROID_AAPT_忽略错误

Gradle 6.5未构建:ANDROID_AAPT_忽略错误,android,android-studio,gradle,Android,Android Studio,Gradle,我正在使用以下工具构建android项目: Android Gradle插件v:4.1.0-10 渐变版本:6.5-rc-1 得到这个错误: Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. Could not create task ':app:extractDeepLinksDebug'. Cannot obtain value from provider of envir

我正在使用以下工具构建android项目:

  • Android Gradle插件v:4.1.0-10
  • 渐变版本:6.5-rc-1
得到这个错误:

Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
Could not create task ':app:extractDeepLinksDebug'.
Cannot obtain value from provider of environment variable 'ANDROID_AAPT_IGNORE' at configuration time.
Use a provider returned by 'forUseAtConfigurationTime()' instead.
我在更新Gradle版本时开始出现此错误

现在,在我降级到最后6.5-milestone-1之后,它给了我另一个错误:

Unsupported method: AndroidArtifact.getBuildConfigFields().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
现在我无法用任何版本构建我的项目