- Affected Modules: <a href="openFile:/***/**/*/*/app/build.gradle">app</a>
无法解析这个依赖库!!!!!!!!!!!!!!
找到项目的根项目settings.gradle文件
源代码
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
修改后 !!!!!!
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
jcenter()
maven { url 'https://jitpack.io'}
}
}
jcenter() maven { url 'https://jitpack.io'} 然后 Sync Now 搞定