播放服务7.5.0后,在Manifest中无法使用android:icon ="@ mipmap/ic_launcher"

Vik*_*uli 8 android drawable mipmaps google-play-services

我最近使用依赖项更新了播放服务
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:\3cworkspace\PeakPerformance\app\src\main\AndroidManifest.xml
Run Code Online (Sandbox Code Playgroud)

小智 22

将followind行添加到应用程序标记

    tools:replace="android:icon" 
Run Code Online (Sandbox Code Playgroud)

也导入xmlns:tools="http://schemas.android.com/tools"清单

  • 谢谢!这是ic_launcher应用程序图标冲突的解决方案。 (2认同)
  • 这绝对应该被标记为正确答案。奇迹般有效! (2认同)