我将Android Studio设置为3.1.4,将Gradle设置为4.4,将SDK设置为28(也安装了存储库)。所以我总是在设计库中收到此错误。
在我的Gradle里面
OPTIONS
我的日志是:
implementation 'com.android.support:design:28.0.0-rc01'
答案 0 :(得分:0)
尝试将其添加到您的存储库所在的Build.gradle
-> buildscript -> allprojects
:
repositories {
google()
maven {
url 'http://repo1.maven.org/maven2'
}
jcenter { url "http://jcenter.bintray.com/"
}
}
确保未签入离线工作:
File -> Settings -> Build, Execution, Deployment -> Gradle
取消选中“脱机工作”,然后工作正常。