新建的一个工程报的这个错: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/tes
下面是解决方案:
在dependencies里面添加这句然后再同步一下就好了。
androidTestCompile('com.android.support:support-annotations:26.1.0') { force = true }