Error:Execution failed for task

2018-05-22  本文已影响0人  阿狸_小乖
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 gradle 中添加如下

configurations.all {
  resolutionStrategy.force 'com.android.support:support-annotations:26.1.0'
}
image.png

原文链接:https://www.coocj.top/cms/a/1375.html

欢迎访问我的博客:https://www.coocj.top

上一篇下一篇

猜你喜欢

热点阅读