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



当我尝试安装存储库时,我收到 gradle 错误(模块:应用程序(,它显示所需的软件包无法从互联网上获得。另外,我是 Ubuntu 用户。

apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.example.subhashini.techloggia"
minSdkVersion 19
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.3.3', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.0'
//testCompile 'junit:junit:4.12'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
}

在 android studio 中打开 sdk 管理器并将 android 支持存储库更新为 47.0.0v。

没有您的错误日志,就不可能知道这是否是唯一的问题,但我怀疑错误的原因是浓缩咖啡版本 2.2.2 是最新版本(至少,我知道(。

将版本号从2.3.3更改为2.2.2

相关内容

最新更新