gpt4 book ai didi

android - 无法解析 : com. android.support.test.espresso

转载 作者:行者123 更新时间:2023-11-29 19:11:36 24 4
gpt4 key购买 nike

我的build.gradle文件如下:

应用插件:'com.android.application'

安卓{

compileSdkVersion 26

buildToolsVersion '25.0.3'

defaultConfig {

applicationId "com.xavier.hello"

minSdkVersion 15

targetSdkVersion 26

versionCode 1

versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

buildTypes {

release {

minifyEnabled false

proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

}

}

依赖关系{

compile fileTree(include: ['*.jar'], dir: 'libs')

androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',

{

排除组:'com.android.support',模块:'support-annotations'

})

compile 'com.android.support.constraint:constraint-layout:1.0.2'

testCompile 'junit:junit:4.12'

每次都报如下错误:

enter image description here

最佳答案

当我想尝试 Espresso 时遇到了同样的问题。

我已经通过添加解决了

maven {
url "https://maven.google.com"
}

allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}

关于android - 无法解析 : com. android.support.test.espresso,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45097825/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com