我更改了默认应用程序图标,它在应用程序抽屉中显示正常,但在 Android 8.0 最近的应用程序上,图标仍然是默认图标。
此外,当我尝试卸载应用程序时,打开的警报窗口包含默认的 react-native 图标。
我试着查看其他帖子并找到了 this comment ,但我已经设置了这些,甚至创建了一个 mipmap-ldpi (36x36) 图标,但它仍然保持不变。
如何更改这些图标?
我正在使用 React-native 0.59.1
最佳答案
对于 Android 8.0 及更高版本,使用 Adaptive Launcher Icon
,对于低于 Android 8.0 的版本,我们使用 Legacy Launcher Icon
您可以尝试使用 Image Asset Studio
更新图标 -
要启动 Image Asset Studio,请在 Project Window
中选择 Android。右键单击 res
文件夹并选择 New > Image Asset
。您现在已经打开了 Image Asset Studio。您现在可以通过选择图标类型
,根据您的要求创建Adaptive Launcher Icon
或Legacy Only Launcher Icon
。
可以引用这个link想要查询更多的信息。
希望它有效!
关于react-native - React-native 中最近的应用程序图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55332815/