【发布时间】:2018-07-06 16:37:55
【问题描述】:
我正在更改应用启动器图标,并使用instructions 修改了res/mipmap/ic_launcher 图标。在 Android Studio 中,我看到了正确的修改图标。
但是,设备上仍显示原来的默认图标,而不是我绑定到 ic_launcher 的新图标。我的清单使用指向新值 AFAICT。
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="app.anytune.rxsongbrowsertrials">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
....
</manifest>
为什么不使用ic_launcher 图标?
【问题讨论】:
-
尝试删除mipmap各个文件夹中的所有现有图标,例如mipmap-hdpi、xhdpi等。
-
我从 mipmap ic_launcher 文件的 Android Studio 视图和文件系统中都检查了,只有新图标存在。我已从设备中删除了该应用程序,并清理并重建了该项目。仍然得到旧图标。我不知道它可能来自哪里。
-
普通图标和圆形图标你都改了吗?
-
是的,它们都显示在我上面的清单中。两者都指向同一个@mipmap/ic_launcher,我检查它是否是各种分辨率的正确版本。
-
是否存在可能缺少的通用分辨率?