Gradle 同步失败:在以下任何来源中均未找到插件 [id: 'com.android.application', 版本: '7.1.2', apply: false]:

2023-11-21

我已经升级了 Android Studio,之后我遇到了这个错误:

Gradle sync failed: Plugin [id: 'com.android.application', version: '7.1.2', apply: false] was not found in any of the following sources:
                - Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
                - Plugin Repositories (could not resolve plugin artifact 'com.android.application:com.android.application.gradle.plugin:7.1.2')
                Searched in the following repositories:
                Gradle Central Plugin Repository
                Google
                MavenRepo (24 s 586 ms)

我已将 JDK 升级到 11,但没有修复该错误。我还可以做些什么?


Solved:

在尝试了一些其他解决方案后,我发现我没有删除代理gradle-wrapper.properties。这阻止了我的项目下载依赖项。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Gradle 同步失败:在以下任何来源中均未找到插件 [id: 'com.android.application', 版本: '7.1.2', apply: false]: 的相关文章

随机推荐