每当我打开android studio时,都会显示一些错误
Error:Failed to resolve: com.android.support:appcompat-v7:28.+
<a href="install.m`enter code here`2.repo">Install Repository and
sync project</a><br><a href="open.dependency.in.project.structure">
Show in Project Structure dialog</a>
答案 0 :(得分:2)
在您的顶级build.gradle文件中,将google添加为存储库
allprojects {
repositories {
google()
// If you're using a version of Gradle lower than 4.1, you must instead use:
// maven {
// url 'https://maven.google.com'
// }
// An alternative URL is 'https://dl.google.com/dl/android/maven2/'
}
}
答案 1 :(得分:-1)
使用所有依赖项更新您的android studio并创建一个新项目