ionic ionic修改应用图标的问题

我修改了ionic里面的图标和启动画面 重新编译后怎么还是这个图标和界面
麻烦大家给我看看
config.xml也没动啊
Image
Image

阅读 6k
4 个回答

I think that @tomysmile has found the way to fix it at the moment, this is a Cordova bug and not Ionic specific:

Cordova released a fix for this one month ago for the Android platform but for some reason the cordova-cli is still using an old version of the Android platform that hasn't the problem fixed.

So, the steps:

$ ionic platform rm android
$ ionic platform add android
$ ionic platform update android@6.1.0

You can see that by default cordova is adding as android platform version the 6.0.0 but the bug is fixed in the 6.1.0 (https://github.com/apache/cor...

Remove and add the platform can be avoided, I've added them for the people that had copy/pasted the icon and splashcreen to the platform folder, if you haven't done that the third step would be enough.

运行 ionic resources

图标名字跟原来的一样么

新手上路,请多包涵

图标就是res文件夹下的图片如果没有,先把准备好的图片放在resources文件夹下改成对应名字,执行ionic resourses ,如果还没有就手动把res文件夹手动拷到platform对应平台目录下

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进