十、Error:Execution failed for task ':app:processDebugManifest'.
2017-06-30 16:43
525 查看
Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple errors
官方所有的Manifest-merger错误说明:https://developer.android.com/studio/build/manifest-merge.html
其实这种Manifest merger可以归结为,AndroidManifest.xml或者build.gradle中的配置问题。详细错误,可看gradle console即在as右下角位置。
1、效果图如下:
原因:AS的Gradle插件默认会启用Manifest Merger Tool,若Library项目中也定义了与主项目相同的属性(例如默认生成的Android:icon和android:theme),则此时会合并失败,并报上面的错误。
解决:在清单文件AndroidManifest.xml中修改两个地方
(1)在下添加xmlns:tools=”http://schemas.android.com/tools”
(2)在下添加tools:replace=”icon, label, theme”
2、效果图如下:
从上图可以看出我这里的问题是引用了libray需要app->build.gradle的minSdkVersion要至少是16,而我设置的是15,所以改成16就没问题了。
一般原因:添加的Libray目录下的build.gradle的minSdkVersion,targetSdkVersion跟项目中的app下的build.gradle的不一样。具体可以看右边Gradle Console上的错误信息。
解决:修改两个version与项目中app下的build.gradle的一样
3、原因:可能你的AndroidManifest.xml中引用某个Activity多次
解决:只能引用一个某Activity
相关文章推荐
- Manifest merger failed : Error:Execution failed for task ':app:processDebugManifest'.
- 安卓异常之Error:Execution failed for task ':app:processDebugManifest'
- Ros下Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : Attribut
- android studio导入项目出错:Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger
- 终极报错解决方案:Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with
- Error:Execution failed for task ':app:processDebugManifest'.
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
- AS导入项目出现Error:Execution failed for task ':app:processDebugManifest'.错误
- Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed with 问题解决方案
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
- 关于Android Studio 报Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger fa
- Error:Execution failed for task ':app:processDebugManifest'
- android异常Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
- Android Studio集成Sweet Alert Dialog报错(Error:Execution failed for task ':app:processDebugManifest'.)
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
- 终极报错解决方案:Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with
- Error:Execution failed for task ':app:processDebugManifest'.
- Error:Execution failed for task ':app:processDebugManifest'.