无法解析:IntelliJ IDEA中的com.android.support:appcompat-v7:27.+

0 android intellij-idea

当我尝试在IntelliJ IDEA中构建一个adroid项目时出现此错误(错误:(26,13)无法解决:com.android.support:appcompat-v7:27 .+安装存储库并同步项目
在文件中显示)我该如何解决它: 在此输入图像描述

Gav*_*iel 5

单击"安装存储库和同步项目"链接.

或者您可以尝试手动修复build.gradle.在build.gradle中的项目根目录中添加:

allprojects {
    repositories {
        // add below
        maven { url "https://maven.google.com" }
    }
}
Run Code Online (Sandbox Code Playgroud)