答案 0 :(得分:0)
您需要为构建脚本存储库添加google()
。在这里查看我的答案:https://stackoverflow.com/a/51151050/8034839
即
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
allprojects {
repositories {
google()
jcenter()
}
}