未能解析:com.android.support.test.espresso:espresso核心:2.3.3

未能解析:com.android.support.test.espresso:espresso核心:2.3.3,android,Android,我在尝试安装存储库时收到gradle错误(module:app),这表明所需的软件包无法从internet获得。另外,我是Ubuntu用户 apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "25.0.2" defaultConfig { applicationId "com.example.subhashini.techlog

我在尝试安装存储库时收到gradle错误(module:app),这表明所需的软件包无法从internet获得。另外,我是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.3.3
更改为
2.2.2

请发布错误日志。先生,我已经完成了。。但现在它显示了大约7个与java相关的errors@Subhashini新的错误是什么?请用日志更新您的问题。事实上,错误的主要原因发生在我在drawable目录中以数字作为名称保存图像时…现在我清除了所有。。。谢谢你,先生