解决依赖资源同名的问题

前端之家收集整理的这篇文章主要介绍了解决依赖资源同名的问题前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

In case any one else has this problem and none of the mentioned answers solved your issue you can add this line to your AndroidManifest.xml file in the application tag:

tools:replace="android:icon

You also need the tool namespace in you manifest tag

xmlns:tools="http://schemas.android.com/tools"

So it would look like this:

<manifestxmlns:android="
xmlns:tools="http://schemas.android.com/tools"
package="com.example.sqlite">
<application
android:allowBackup="true"
android:label="@string/app_name"
android:theme="@style/AppTheme"
tools:replace="android:icon"
android:icon="@mipmap/ic_launcher"
android:name="com.orm.SugarApp">

I have thecom.github.satyan:sugar:1.3dependency as well,I believe that library is importing another icon in its own manifest,thus causing the conflict.

原文链接:https://www.f2er.com/javaschema/284351.html

猜你在找的设计模式相关文章