Android Studio 主清單文件報錯


報錯: android

?app

1ide

2spa

3.net

4orm

5xml

Error:(32, 9) Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:32:9ip

Error:(32, 9) Execution failed for task ':app:processDebugManifest'.ci

> Manifest merger failed : Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:32:9element

    is also present at DemoStorage:PG_Edit_SDK:unspecified:13:9 value=(@drawable/ic_launcher)

    Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:29:5 to override

注意兩個地方:


1. 在manifest節點加上:xmlns:tools="http://schemas.android.com/tools"


2. 在application 節點加上:tools:replace="android:icon, android:theme"


而後從新編譯下就沒有錯誤了

相關文章
相關標籤/搜索