Android studio Error:Execution failed for task ':app:preDebugAndroidTestBuild'错误的解决办法
程序员文章站
2022-04-15 20:54:56
android studio新建工程后出现如下错误
error:execution failed for task ':app:predebugandroidtestbuild'....
android studio新建工程后出现如下错误
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
解决办法:在 build.gradle 添加
android { ... } configurations.all { resolutionstrategy.force 'com.android.support:support-annotations:27.1.1' } dependencies { ... }
上一篇: XXL-Job启动源码详解
下一篇: C++值返回和引用返回的区别
推荐阅读
-
ANDROID打包错误ERROR:EXECUTION FAILED FOR TASK ′:APP:LINTVITALRELEASE′.
-
关于android studio打开后自动弹出:Error:Execution failed for task ':app:preDebugAndroidTestBuild'
-
Android Studio NDK开发时报Execution failed for task ':xxxx项目:transformNativeLibsWithStripDebugSymbol 错误的解决办法
-
Android Studio Error:Execution failed for task ':app:preDebugAndroidTestBuild'.彻底解决的方法以及修改AScompileSDKVersion
-
Android studio Error:Execution failed for task ':app:preDebugAndroidTestBuild'错误的解决办法
-
android studio新建项目时出现Error:Execution failed for task ':app:preDebugAndroidTestBuild'.
-
ANDROID打包错误ERROR:EXECUTION FAILED FOR TASK ′:APP:LINTVITALRELEASE′.
-
关于android studio打开后自动弹出:Error:Execution failed for task ':app:preDebugAndroidTestBuild'
-
android studio 出现Error:Execution failed for task ':app:preDebugAndroidTestBuild'. 的解决办法
-
Android studio Error:Execution failed for task ':app:preDebugAndroidTestBuild'错误的解决办法