Resolved versions for app (24.2.0) and test app (23.1.1) differ

来源:互联网 发布:太阁立志传5 町数据 编辑:程序博客网 时间:2024/04/29 07:22

Error:Conflict with dependency ‘com.android.support:support-annotations’ in project ‘:easeUIDemo_CN’. Resolved versions for app (24.2.0) and test app (23.1.1) differ. See http://g.co/androidstudio/app-test-app-conflict for details.

解决方法:build.gradle改成这样

androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'    androidTestCompile 'com.android.support.test:runner:0.5'    androidTestCompile 'com.android.support:support-annotations:24.2.0'    androidTestCompile 'com.android.support.test:rules:0.4.1'    androidTestCompile 'com.android.support.test.espresso:espresso-intents:2.2.1'    androidTestCompile 'com.android.support.test.espresso:espresso-web:2.2.1'
0 0