播放服务 7.5.0 后无法在清单中使用 android:icon="@mipmap/ic_launcher"
Unable to use android:icon="@mipmap/ic_launcher" in Manifest after play services 7.5.0
我最近使用依赖项更新了播放服务
compile 'com.google.android.gms:play-services:7.5.0'
我的应用程序图标启动器在 @mipmap/ic_launcher"
中,但在 AndroidManifest.xml
中显示错误。
我是否应该再次将此图标放在 drawable
中,否则呢?
帮我找出解决办法。
更新: 这是来自 Android 工作室的消息
Error:(17, 9) Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:17:9
is also present at com.pnikosis:materialish-progress:1.0:13:9 value=(@drawable/ic_launcher)
Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:14:5 to override
Error:(17, 9) Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:17:9
D:cworkspace\PeakPerformance\app\src\main\AndroidManifest.xml
将以下行添加到应用程序标签
tools:replace="android:icon"
同时导入 xmlns:tools="http://schemas.android.com/tools"
到清单文件。
在清单中的应用程序标签下,对我有用。
androidtools:replace='android:icon'
android:name=".ApplicationSubClass"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo.Light"
tools:replace="android:icon" > //HERE
我最近使用依赖项更新了播放服务
compile 'com.google.android.gms:play-services:7.5.0'
我的应用程序图标启动器在 @mipmap/ic_launcher"
中,但在 AndroidManifest.xml
中显示错误。
我是否应该再次将此图标放在 drawable
中,否则呢?
帮我找出解决办法。
更新: 这是来自 Android 工作室的消息
Error:(17, 9) Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:17:9
is also present at com.pnikosis:materialish-progress:1.0:13:9 value=(@drawable/ic_launcher)
Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:14:5 to override
Error:(17, 9) Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:17:9
D:cworkspace\PeakPerformance\app\src\main\AndroidManifest.xml
将以下行添加到应用程序标签
tools:replace="android:icon"
同时导入 xmlns:tools="http://schemas.android.com/tools"
到清单文件。
在清单中的应用程序标签下,对我有用。
androidtools:replace='android:icon'
android:name=".ApplicationSubClass"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo.Light"
tools:replace="android:icon" > //HERE