无法使用android:icon ="@ mipmap/ic_launcher"在清单后播放服务7.5.0 [英] Unable to use android:icon="@mipmap/ic_launcher" in Manifest after play services 7.5.0

查看:1180
本文介绍了无法使用android:icon ="@ mipmap/ic_launcher"在清单后播放服务7.5.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近使用依赖项更新了播放服务
compile 'com.google.android.gms:play-services:7.5.0'
我的应用程序图标启动器在@mipmap/ic_launcher"中,但是在AndroidManifest.xml中显示错误. 我是否应该再次将此图标放置在drawable中?否则
帮我找出解决方案.

I have recently update play services using dependencies
compile 'com.google.android.gms:play-services:7.5.0'
My app icon launcher is in @mipmap/ic_launcher" but this is showing error in AndroidManifest.xml. Should i again place this icon in drawable or else ?
Help me to find out the solution.

更新:这是来自Android Studio的消息

UPDATE: Here is Messages from Android studio

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

推荐答案

将以下行添加到应用程序标记中

Add following line to the application tag

tools:replace="android:icon"

还要导入xmlns:tools="http://schemas.android.com/tools"到清单文件.

这篇关于无法使用android:icon ="@ mipmap/ic_launcher"在清单后播放服务7.5.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆