Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versi

问题:

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.

解决办法:

androidTestImplementation('com.android.support:support-annotations:26.1.0') {
        force = true
}

或者
 androidTestCompile('com.android.support:support-annotations:26.1.0') {
        force = true
}

你可能感兴趣的:(其它)