我已经升级了我的Android,之后我面临着这个错误:
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,但它没有修复错误。我还能做什么?
发布于 2022-03-11 06:47:57
解决:
在尝试了一些其他解决方案之后,我发现我并没有删除gradle-wrapper.properties
中的代理。这阻止了我的项目下载依赖项。
发布于 2022-04-07 13:52:04
今天,当我故意更新到gradle 7.1.3时,我也遇到了同样的问题,我刚刚重新启动了android,并将gradle版本更改为7.1.2,它起了作用。
发布于 2022-10-02 14:03:56
这发生在较新的gradle版本中,转到Settings -> Plugins ->设置-> HTTP代理设置,然后切换到(自动检测代理设置),然后保存和同步项目,这将解决问题。
查看下面的图像以获得快速帮助
https://stackoverflow.com/questions/71427323
复制相似问题