美文网首页
[转]Execution failed for task 

[转]Execution failed for task 

作者: 努力深耕Android的小透明 | 来源:发表于2018-05-10 13:48 被阅读12次

简介

当我们平常运行AS编译器,发生如下错误

Error:Execution failed for task ‘:app:preDebugAndroidTestBuild’.
Conflict with dependency ‘com.android.support:support-annotations’ in project ‘:app’. Resolved versions for app (22.1.0) and test app (25.4.0) differ. See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.

发生这类型的错误,是当我们修改了.build中的compileSdkVersion,产生所依赖的dependency与当前版本不一致导致的。

解决
build->Rebuid-project

转载文章:Execution failed for task ':app:preDebugAndroidTestBuild

相关文章

网友评论

      本文标题:[转]Execution failed for task 

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