遇到这问题,更改app版本就很简单了,但我因为某些原因不能修改app版本,只能修改test app了。所以找到了下面链接的参考:
https://blog.csdn.net/yikunhan/article/details/80096039
以下为转载内容
==========================================================================
-
Error:Execution failed for task ':app:preDebugAndroidTestBuild'.
-
> Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.0.0-beta1) and test app (27.1.1) differ. See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.
TestBuildVersion 出问题了
AS配置的版本:
修改:
或者直接删除这两行:
结束。