美文网首页
[问题]Error:Execution failed for t

[问题]Error:Execution failed for t

作者: 毕加森 | 来源:发表于2018-05-29 14:38 被阅读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.
[解决方案]

https://blog.csdn.net/fighting_2017/article/details/80244982
在app下的build.gradle文件中的dependences {}中添加如下代码:

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

相关文章

网友评论

      本文标题:[问题]Error:Execution failed for t

      本文链接:https://www.haomeiwen.com/subject/neqajftx.html