我正在使用图像选择库在我的应用程序中,这个库已经定义了android:icon属性,所以为了使gradle成功构建,我需要覆盖这个属性:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.sample.sample">
<application
android:icon="@drawable/icon"
tools:replace="icon"/>
</manifest>
但是我仍然收到以下提示:
清单合并失败:属性application@icon的值(@drawable/icon)来自AndroidManifest.xml:20:9, 也出现在com.kbeanie:image-chooser-library:1.4.3:13:9,值为(@drawable/ic_launcher) 建议:在AndroidManifest.xml:15:5元素中添加“tools:replace="android:icon"”,以覆盖。
有任何建议吗?