如何更改离子应用程序的图标? [英] How to change the icon of an ionic application?
问题描述
我正在尝试将离子应用程序部署到Android设备上几个小时。我已经更改了图标和启动。
I'm trying for hours to deploy an ionic application to a android device. I have change the icon and splash.
然后我这样做:
ionic resources
我获得:
然后我这样做:
ionic platform rm android
ionic platform add android
ionic run android
但我总是有离子的默认图标和泼溅值。我在资源文件夹中看到,我在android文件夹中有正确的图像。
But I have always the default icon and splash values of ionic. I have seen in the resources folder and I have the correct images in the android folder.
你能看到我做错了吗?
推荐答案
cordova-android平台版本6.0.0中存在一个错误,它将资源复制到/ res而不是/ platforms / android / res。最新版本的cordova(6.5.0)有cordova-android平台版本6.1.1修复了这个bug。
There is a bug in cordova-android platform version 6.0.0 which copies the resources to /res instead of /platforms/android/res. The latest version of cordova (6.5.0) has cordova-android platform version 6.1.1 which fixes this bug.
npm install -g cordova
可能还需要手动更新cordova-android版本。
It might be necessary to manually update the cordova-android version too.
cordova platform update android@6.1.1
这篇关于如何更改离子应用程序的图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!