보초의 코딩일기장

[안드로이드] Error:Execution failed for task ':app:preDebugAndroidTestBuild'. 문제해결 본문

Android

[안드로이드] Error:Execution failed for task ':app:preDebugAndroidTestBuild'. 문제해결

장보비 2018. 5. 3. 17:04


Error:Execution failed for task ':app:preDebugAndroidTestBuild'.

> Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.1.0) and test app (27.1.1) differ. See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.


해결방안)


gradle.module(Mudole:app) 의



androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 를

androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 로 수정


androidTestImplementation 'com.android.support.test:runner:1.0.2' 를

androidTestImplementation 'com.android.support.test:runner:1.0.1'로 수정하면 해당오류가 사라진다.

Buy me a coffeeBuy me a coffee
Comments