码迷,mamicode.com
首页 > 其他好文 > 详细

解决依赖资源同名的问题

时间:2015-11-03 12:42:21      阅读:181      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!