两种解决方式
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中对应的内容
感谢参考博客:
Gradle报错Could not resolve all dependencies for configuration ‘:detachedConfiguration7‘.-CSDN博客