Android Studio Version:
使用自己的仓库:
之前都是在build.gradle中添加:
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
maven {
url "http://artifactory.xxx"
credentials {
username = "xxx"
password = "xxx"
}
}
flatDir {
dirs 'libs'
}
google()
}
}
结果最近在build.gradle添加后报错,需要添加在setting.gradle中
repositories {
google()
mavenCentral()
jcenter() // Warning: this repository is going to shut down soon
maven {
url "http://artifactory.xxx"
allowInsecureProtocol = true
credentials {
username = "xxx"
password = "xxx"
}
}
flatDir {
dirs 'libs'
}
}