答案 0 :(得分:1)
在您的项目中,打开 your_app | Gradle脚本|的build.gradle 强>
在依赖项之前将Maven Central Repository添加到build.gradle:
repositories {
mavenCentral()
}
答案 1 :(得分:0)
如果您使用API 26,请将版本号更改为26. + 如果您使用API 27,请将版本号更改为27。+
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support:appcompat-v7:27.+'
如果你的gradle用实现替换compile,则开始使用实现
implementation 'com.android.support:appcompat-v7:26.+'
implementation 'com.android.support:appcompat-v7:27.+'