需要在项目的build.gradle(注意是根目录),添加
buildscript {
repositories {
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
google()
jcenter()
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}
}
build->rebuild project
来源:CSDN
作者:a787188834
链接:https://blog.csdn.net/a787188834/article/details/103703428