1:
Error:Execution failed for task ‘:xxx_library:mergeDebugAndroidTestResources’.解决办法
解决方案:
2:
Android导入项目报错Error:Execution failed for task ‘:app:transformNativeLibsWithMergeJniLibsForDebug’. > M
解决方案:
3:
Error:Execution failed for task ‘:app:mergeDebugResources’.
Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:
解决方案:
这是合并资源文件出错,遇到这种报错,首先检查是不是 .9.png 图片资源出错了。(1): .9.png 图片四条黑边是不是都有,缺少一条就会报错。(2)测试发现,四条黑边中上边和左边的黑边有不连续的情况,是不报错的;但是下边和右边的黑边有一条出现不连续的情况,就会报错!
4:
View 标签写成小写,也会出很奇葩的错误。往往会报你的布局出错,但不会报出你的具体出错点。这时你就要注意了,是不是把 View 写成小写了!
正确的写法:
<View
android:layout_width="match_parent"
android:layout_height="3dp"/>
错误的写法:
<view
android:layout_width="match_parent"
android:layout_height="3dp"/>
5:
在gradle 2.3.3 升级到 3.0.0或之后的版本,安装apk时,as如下弹框:
Installation failed with message INSTALL_FAILED_TEST_ONLY.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present,and then re-installing.
WARNING:Uninstalling will remove the application data!
Do you want to uninstall the existing application?
解决方案:
在gradle.properties文件中添加android.injected.testOnly=false 参考文章
在gradle 2.3.3 升级到 3.0.0或之后的版本,运行时报如下错误:
Error:This Gradle plugin requires Studio 3.0 minimum
解决方案:
在gradle.properties文件中添加 android.injected.build.model.only.versioned=3
6:
Android studio打包App报错:Error:(4) Error: “app_name” is not translated in “ar” (Arabic), “cs” (Czech)..
在报错的布局中加入如下代码:
解决方案:
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="MissingTranslation"
参考博客:
https://blog.csdn.net/liqian719668/article/details/76640699