2017-07-13 8 views
0

リポジトリをインストールしようとしたときにgradleエラー(module:app)が表示され、必要なパッケージが利用できないことが示されましたインターネットから。また、私はUbuntuユーザーです。解決できませんでした:com.android.support.test.espresso:エスプレッソコア:2.3.3

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' 
} 
+0

エラーログを投稿してください。 – Bryan

答えて

0

アンドロイドスタジオオープンsdkマネージャで、アンドロイドサポートリポジトリを47.0.0vに更新しました。

0

エラーログがなければ、これが唯一の問題かどうかを知ることはできませんが、エラーの原因はespresso version 2.2.2(少なくとも私が知っている)です。

2.3.3から2.2.2にバージョン番号を変更します。

+0

私は行っています..しかし、今は約7 java関連のエラーを表示しています – Subhashini

+0

@Subhashini新しいエラーは何ですか?あなたの質問をログで更新してください。 – Bryan

+0

実際には、エラーの主な理由は、描画可能ディレクトリの名前として数字の画像を保存したためです...今、私はすべてをクリアしました...ありがとうございます – Subhashini

関連する問題