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"


而后从新编译下就没有错误了

相关文章
相关标签/搜索