我删除了标准的android机器人图标ic_launcher并添加了我的(以各种密度) 我已经在manifest.xml
<application>
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
....
但是在运行后清理/构建之后我仍然在我的ActionBar中安装了小型机器人机器人,我的应用程序启动图标仍然是Android默认应用程序机器人图标..
我想我错过了一些额外的参数??
我的清单文件肯定是错的...... 用颜色表示.... drawable图标应该是蓝色的......
答案 0 :(得分:1)
尝试从设备卸载应用并重新安装以查看图标更改。
是的,清单文件中的Application标记应该设置如下图标:
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
答案 1 :(得分:0)
我的xml文件中出错....
<application
android:name="SwimmerApp"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
答案 2 :(得分:0)
遇到同样的问题,将ic_launcher.png
复制到drawable-mdpi
下的res
文件夹后解决了问题。