我怎样才能解决这个错误?

时间:2017-09-28 07:55:05

标签: android android-studio android-studio-2.2 android-studio-2.3

错误:任务':app:processXzsaleDebugManifest'执行失败。

  

清单合并失败:来自AndroidManifest.xml的属性应用程序@ icon value =(@ mipmap / ic_launcher):8:9-36         也出现在[com.pnikosis:materialish-progress:1.0] AndroidManifest.xml:13:9-45 value =(@ drawable / ic_launcher)。         建议:在AndroidManifest.xml:5:5-19:19中添加'tools:replace =“android:icon”'以覆盖。

1 个答案:

答案 0 :(得分:0)

我在项目中使用模块时发现了这个错误。

实际上这个错误背后的原因,我在我的项目和模块的清单文件中使用 adroid:icon =“@ mipmap / ic_launcher”,所以它发生冲突。

要解决此问题,只需在模块的清单文件的应用程序标记中添加工具:replace =“android.icon”。就像这样......

<application android:icon="@mipmap/ic_launcher" Tools:replace="android.icon">

从模块的清单文件中删除 adroid:icon =“@ mipmap / ic_launcher”

相关问题