问题:
gradle 插件卡住怎么办?
用 gradle –debug 显示 gradle***plugin 一直下载中
解决:
~/.gradle/init.gradle 中添加下边代码
|
settingsEvaluated { settings -> println "aliyun pluginManagement" settings.pluginManagement { repositories { maven { url "https://maven.aliyun.com/repository/gradle-plugin" } maven { url "https://maven.aliyun.com/repository/spring-plugin" } gradlePluginPortal() } } } |
参考:
https://juejin.cn/post/7067505778353143815