无法更改启动器图标android

时间:2017-11-07 18:51:39

标签: android android-launcher

我正在尝试更改我正在开发的应用程序的启动器图标,但图标保持不变(Android Studio 3.0)。我尝试从 manifest.xml minimap 更改它。它似乎从两个名为ic_launcher_background.xml和ic_launcher_forground.xml的XML文件中获取图标。我试过删除这些文件,但安全删除不允许我这样做。我正在附上我的项目的截图。 enter image description here

4 个答案:

答案 0 :(得分:0)

尝试将您的ic_launcher_torch图标移动到mipmap目录

答案 1 :(得分:0)

  1. drawables 文件夹中删除 ic_launcher_torch.png 文件。
  2. 右键单击res文件夹>新图像资产>图标类型>动作栏和标签图标>资产类型 - 图像>在路径中选择您的徽标>完。
  3. 添加android:icon="@mipmap/yourLogoName"
  4. 图像将保存在 / res / drawable 文件夹中。了解详情:https://developer.android.com/studio/write/image-asset-studio.html

答案 2 :(得分:0)

复制&将启动器图标.png文件粘贴到mipmap文件夹。如果您将图标添加到所有屏幕类型hdpi,mdpi,xhdpi&然后像这样更改android清单代码。

android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"

答案 3 :(得分:0)

在清单文件的两个位置进行更改 android:icon =“ @ mipmap / ic_launcher” android:roundIcon =“ @ mipmap / ic_launcher_round”

首先从手机上卸载该应用程序(安装后请勿重新安装) 卸载该应用后,请尝试再次安装。 我遇到了同样的问题,浪费了大约2个小时,这对我有用

相关问题