在成功构建此错误之前,设计编辑器不可用:“无法解析:espresso-core”

问题描述 投票:0回答:1

我无法打开或建立一个项目。

它表示在使用此错误成功构建之前,设计编辑器不可用:

无法解决:espresso-core

有人说要添加所需的依赖项,但我不知道该怎么做(可能因为新版本有点不同)。

我怎么解决这个问题?

android-studio build
1个回答
0
投票

由于评论的解决方案正在解决问题,我将其作为其他人的答案添加:

请务必将Google的maven链接添加到main build.gradle文件中:

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}
© www.soinside.com 2019 - 2024. All rights reserved.