Plugin [id: ‘org.gradle.toolchains.foojay-resolver-convention‘, version: ‘0.5.0‘] was not found in a
Plugin [id: 'org.gradle.toolchains.foojay-resolver-convention', version: '0.5.0'] was not found in a
·
今天编译 android 项目时,因为下载了不同版本的 gradle 导致出现了这个问题
Plugin [id: 'org.gradle.toolchains.foojay-resolver-convention', version: '0.5.0'] 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 'org.gradle.toolchains.foojay-resolver-convention:org.gradle.toolchains.foojay-resolver-convention.gradle.plugin:0.7.0')
Searched in the following repositories:
Gradle Central Plugin Repository
MinecraftForge(https://maven.minecraftforge.net/)
解决方法:
清除 gradle 的本地缓存,然后重新加载依赖包
rm -rf ~/.gradle
./gradlew --refresh-dependencies
windows 环境下,删除 .gradle 文件夹,然后执行(我本地执行失败了,也不影响)
gradlew --refresh-dependencies
重新编译,发现好使了。
更多推荐
所有评论(0)