在父项目的build.gradle中加入maven{url “xxxx”}就行,不用在settings.gradle里面配置
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
jcenter() // Warning: this repository is going to shut down soon
maven {
url "https://jitpack.io"
}
}
}