解决:Resolved versions for app (26.1.0) and test app (27.1.1) differ.

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.

解决方法:在app的build.gradle中添加
androidTestCompile('com.android.support:support-annotations:26.1.0') { force = true }
解决:Resolved versions for app (26.1.0) and test app (27.1.1) differ._第1张图片

你可能感兴趣的:(Android,错误)