欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Android Studio報(bào)錯(cuò)Manifest merger failed with multiple errors

 更新時(shí)間:2017年10月30日 08:40:27   作者:歪歪三千  
這篇文章主要介紹了Android Studio報(bào)錯(cuò)Manifest merger failed with multiple errors

1、Error:Execution failed for task ':XXXX:processDebugManifest'.

> Manifest merger failed with multiple errors, see logs

原因:

AS的Gradle插件默認(rèn)會(huì)啟用Manifest Merger Tool,若Library項(xiàng)目中也定義了與主項(xiàng)目相同的屬性(例如默認(rèn)生成的android:icon和android:theme),則此時(shí)會(huì)合并失敗,并報(bào)上面的錯(cuò)誤。

解決方法有以下2種:

方法1:在Manifest.xml的application標(biāo)簽下添加tools:replace="android:icon, android:theme"(多個(gè)屬性用,隔開,并且記住在manifest根標(biāo)簽上加入xmlns:tools="http://schemas.android.com/tools",否則會(huì)找不到namespace哦)

方法2:在build.gradle根標(biāo)簽上加上useOldManifestMerger true (懶人方法)

相關(guān)文章

最新評(píng)論