机器人工作室的摇篮图标错误,清单合并 [英] Android studio Gradle icon error, Manifest Merger
问题描述
我总是看到这个消息,不知道如何解决这个问题为好。
I keep seeing this message and not sure how to solve it for good.
Error:(43, 9) Attribute application@icon value=(@drawable/new_app_icon) from AndroidManifest.xml:43:9
is also present at com.github.erizet.signala:signala-longpolling:0.20:7:18 value=(@drawable/ic_launcher)
Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:40:5 to override
:OpenBook:processDebugManifest FAILED
Error:Execution failed for task ':OpenBook:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs
尝试添加安卓取代=安卓图标
来我的表现甚至与我的图标
Tried adding android:replace="android:icon"
to my manifest even with my icon.
我试图删除机器人:从库图标=@可绘制/ ic_launcher
,但它一直回来时,我建,因为它从行家进口
I tried deleting the android:icon="@drawable/ic_launcher
from the library but it keeps coming back when i build because its imported from maven
任何想法?
推荐答案
这似乎是mainfest合并工具摇篮的错。
It seems to be the fault of the mainfest Merger tool for gradle.
<一个href="http://tools.android.com/tech-docs/new-build-system/user-guide/manifest-merger">http://tools.android.com/tech-docs/new-build-system/user-guide/manifest-merger
加入到我的清单标签解决了的xmlns:工具=http://schemas.android.com/tools
Solved it by adding to my manifest tag xmlns:tools="http://schemas.android.com/tools"
加入工具:更换=安卓图标,安卓主题为
应用程序标签
这告诉合并使用我的清单图标和主题,而不是其他库
This tells the merger to use my manifest icon and theme and not of other libraries
希望它帮助的感谢
这篇关于机器人工作室的摇篮图标错误,清单合并的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!