我将 Android Studio 更新到了 Arctic Fox 2020.3.0.0 版本。然后我将 gradle 插件更新为 7.0.0
版本,将 gradle-wrapper.properties
文件中的 gradle 更新为 gradle-7.0.2-bin
。现在同步时出现此错误:
Unable to load class 'org.gradle.api.publication.maven.internal.MavenPomMetaInfoProvider'.
This is an unexpected error. Please file a bug containing the idea.log file.
答案 0 :(得分:0)
我通过删除 build.gradle:
中的一行来解决这个问题
apply plugin: 'com.github.dcendents.android-maven'