我刚刚升级到了Android Studio 4.0并尝试构建我的项目。我不断收到以下错误信息:
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.
我已经在使用最新版本的Gradle和Gradle插件。
Gradle版本:
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-milestone-1-all.zip
Gradle插件工具版本:
classpath 'com.android.tools.build:gradle:4.1.0-alpha10'
希望能提供任何针对该问题的解决方案或修复方法。谢谢您提前的帮助。