Gradle下载慢

两种解决方式

1、
复制

repositories {
maven{url 'https://maven.aliyun.com/nexus/content/groups/public/'}
mavenCentral()
}

覆盖原本build.gradle中对应的内容


2、

复制

repositories {
maven{
allowInsecureProtocol = true
url 'http://maven.aliyun.com/nexus/content/groups/public/'}
mavenCentral()
}

覆盖原本build.gradle中对应的内容



3、

如果是kts就复制
repositories {
maven { setUrl("https://maven.aliyun.com/nexus/content/groups/public/") }
mavenCentral()
}

覆盖原本build.gradle.kts中对应的内容







感谢参考博客:
Gradle报错Could not resolve all dependencies for configuration ‘:detachedConfiguration7‘.-CSDN博客




posted @ 2023-10-17 10:48  Lee597  阅读(69)  评论(0)    收藏  举报