Android 启动器图标只出现在模拟器中

Android launcher icon only appears in the emulator

我正在尝试将启动器图标添加到我的 android 应用程序。我在网上看过多个教程,解释了它是如何工作的。我最终这样做了: https://www.youtube.com/watch?v=DQ8HDL-X9rM

laucher 图标会出现在 android 模拟器中,但不会出现在实体手机上。 我尝试做的事情:

这是几年前出现在 Whosebug 主题中的提示。 在过去的一周里我一直在研究它,但我就是无法让它工作。

这是我的ic_launcher.xml

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
   <background android:drawable="@color/ic_launcher_background"/>
   <foreground android:drawable="@mipmap/ic_launcher"/>
</adaptive-icon>

这是我的 AndroidManifest 中的行

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"

        <activity android:name="com.example.fragments.Product">
           <meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value="com.example.MainActivity" />
        </activity>
        <activity android:name="com.example.MainActivity">
           <intent-filter>
              <category android:name="android.intent.category.LAUNCHER" />
              <action android:name="android.intent.action.MAIN" />
           </intent-filter>
        </activity>
    </application>

我还检查了所有的 mipmap 文件夹,我所有的图标都在那里,名称正确。

有人知道我能做什么吗?

---6 月 3 日更新---

现在它甚至不再出现在模拟器上了... 我已经尝试并在线阅读了所有主题我真的希望有人能发现我做错了什么

您可以通过简单的方法为应用程序添加图标

转到项目 app->res->drawable->右键->new->image asset->source asset select 图片路径并点击下一步按钮 运行 应用程序

another way