Execution failed for task ':app:preDebugAndroidTestBuild问题解决
程序员文章站
2022-06-02 22:23:09
as打开新项目时
execution failed for task ':app:predebugandroidtestbuild'.
> conflict with d...
as打开新项目时
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.
原因:当我们修改了.build中的compilesdkversion,产生所依赖的dependency与当前版本不一致导致的。
解决办法:build->rebuid-project
推荐阅读
-
Execution failed for task ':app:preDebugAndroidTestBuild问题解决
-
ANDROID打包错误ERROR:EXECUTION FAILED FOR TASK ′:APP:LINTVITALRELEASE′.
-
关于android studio打开后自动弹出:Error:Execution failed for task ':app:preDebugAndroidTestBuild'
-
Error:Execution failed for task ':app:processDebugManifest'.
-
异常Error:Execution failed for task ':app:preDebugAndroidTestBuild'解决方法
-
Android Studio NDK开发时报Execution failed for task ':xxxx项目:transformNativeLibsWithStripDebugSymbol 错误的解决办法
-
Execution failed for task ‘:app:checkDebugDuplicateClasses‘解决方案
-
Error:Execution failed for task ':app:kaptDebugKotlin'
-
Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'
-
有效解决Execution failed for task ':app:clean'. > Unable to delete directory问题