簡體   English   中英

無法解決:com.android.support.test.espresso:espresso-core:2.3.3

[英]Failed to resolve: com.android.support.test.espresso:espresso-core:2.3.3

當我嘗試安裝存儲庫時收到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。

沒有您的錯誤日志,就不可能知道這是否是唯一的問題,但是我懷疑錯誤的原因是espresso 2.2.2版是最新版本(至少我知道)。

將版本號從2.3.3更改為2.2.2

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM