在带剪辑艺术的中创建启动程序图标()时,将在mipmap文件夹中创建图像:

但是对于anydpi-v 26,前景的标准图标不会改变,尽管背景色已经改变:

ic_launcher.xml(anydpi-v26):
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>ic_launcher_foreground文件夹中有两个文件: ic_launcher_foregraund.xml (新图标)和ic_launcher_foregraund.xml (v24) (标准图标)
他为什么不自动换一张新的画呢?谢谢你的回答!
发布于 2021-05-27 05:48:55
我也有过同样的问题。同样的解决方案。由于某些原因,在创建新的启动程序图标时,旧文件ic_launcher_foreground.xml不会被删除在可绘制文件夹中。你会得到两个同名的文件。因此,删除它(而没有安全删除),解决了这个问题。
发布于 2020-04-05 05:30:22
我将ic_launcher_foreground.xml(v24)文件从文件夹中删除:res/v24/ icon _前台/,该文件保留在标准图标中。
这一行动解决了问题:

发布于 2021-08-04 08:25:24
我遇到这个问题是因为我的一个库定义了一个启动程序图标。奇怪的是,应用程序模块从应用程序模块读取ic_launcher_background,而从库模块读取ic_launcher_foreground。
https://stackoverflow.com/questions/61023038
复制相似问题