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.

我在网上找到的一些解决办法
在app下的build.gradle文件中的dependences {}中添加如下代码:

androidTestCompile(‘com.android.support:support-annotations:26.1.0’) {
force = true
}
如图:
关于Android Studio3.0使用过程的一些报错

相关文章:

  • 2022-12-23
  • 2021-07-13
  • 2021-06-26
  • 2022-12-23
  • 2021-05-19
  • 2021-08-02
  • 2021-11-23
  • 2021-12-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2021-06-26
  • 2021-11-13
  • 2021-11-06
  • 2021-07-23
相关资源
相似解决方案