首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Android Studio解析失败:.espresso:espresso-core:3.2.0

Android Studio解析失败:.espresso:espresso-core:3.2.0
EN

Stack Overflow用户
提问于 2020-07-16 09:28:30
回答 1查看 161关注 0票数 0

我尝试同步我的项目,但它总是失败,并显示以下错误消息:

无法解析:androidx。{此处指定活动名称}.espresso:espresso-core:3.2.0

在项目结构对话框中显示受影响的模块:应用程序

无法解析:androidx.{此处指定活动名称}.ext:junit:1.1.1

代码语言:javascript
复制
android {
    compileSdkVersion 30
    buildToolsVersion "30.0.0"

    defaultConfig {
        applicationId "com.example."
        minSdkVersion 16
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner ".runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta8'
    testImplementation 'junit:junit:4.13'
    androidTestImplementation '.ext:junit:1.1.1'
    androidTestImplementation '.espresso:espresso-core:3.2.0'
    androidTestImplementation 'androidx.test:runner:1.2.0'
    androidTestImplementation 'androidx.test:rules:1.2.0'
} 
EN

回答 1

Stack Overflow用户

发布于 2020-07-16 09:34:07

清理并构建可能会或不会在某些时候发生这种类型的错误

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62926061

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档