Android 不断在手机中放置默认图标

问题描述 投票:0回答:2

我更改了 mipmap 文件夹中的图标。在我的 AndroidManifest 中:

    android:allowBackup="true"
    android:icon="@mipmap/launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/launcher"

但是手机中绘制的图标是默认的(带有机器人的绿色图标)。我什至删除了 ic_launcher.png 和 ic_launcher_round.png 文件...

卸载并重新安装很多次。清洁/重建也很多次。没有任何效果。

这让我摸不着头脑。

有什么帮助吗?

android android-launcher
2个回答
0
投票

更改应用程序启动器图标的最佳方法是使用 Android Studio 中实现的图像资源选项。它可以处理所有常见的手机尺寸。

更多信息在这里 - https://developer.android.com/studio/write/image-asset-studio#access


0
投票

我遇到了同样的问题,直到我检查我使用的 svg 可绘制对象有一些错误,这些错误显示在 Asset Studio 对话框的左下角,后来替换了另一个 png 可绘制对象,然后它就工作了

© www.soinside.com 2019 - 2024. All rights reserved.