首页 > 其他 > 详细

解决依赖资源同名的问题

时间:2015-11-03 12:41:21      阅读:287      评论:0      收藏:0      [点我收藏+]

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:

<manifest xmlns: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 the com.github.satyan:sugar:1.3 dependency as well, I believe that library is importing another icon in its own manifest, thus causing the conflict.

解决依赖资源同名的问题

原文:http://my.oschina.net/weichou/blog/525144

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!