我的清单文件中有此代码。我面临的问题是该图标仅显示在 Android Lollipop (Api21,Asus Nexus Tab)中。我已经在 Oreo (Oppo A3S) 和 Android P (Samsung Galaxy S10+) 中进行了测试,但没有显示图标。mipmap 中的图像看起来不错。
<application
android:name=".Application"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
仅显示纯色(图标的背景)。这与mipmap中的图像有关吗?因为它们看起来不错。即使清单中行号附近的图标预览看起来也不错。
我还观察到我只有一个 webp 文件,mipmap-anydpi-v26
但其他应用程序有 2 个 XML 文件,一个用于圆形文件,一个用于普通文件。