离子应用程序图标在android中没有变化 [英] Ionic app icon not change in android

查看:194
本文介绍了离子应用程序图标在android中没有变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 ionic 中有项目,我已经使用 ionic CLI 设置了图标。

I have project in ionic, I already set icon using ionic CLI.

在iOS中图标已更改,但在android中它没有更改。

In iOS the icon is changed, but in android its not changed.

这是我的config.xml:

Here is my config.xml:

<platform name="android">
    <icon src="resources/android/icon/drawable-ldpi-icon.png" density="ldpi"/>
    <icon src="resources/android/icon/drawable-mdpi-icon.png" density="mdpi"/>
    <icon src="resources/android/icon/drawable-hdpi-icon.png" density="hdpi"/>
    <icon src="resources/android/icon/drawable-xhdpi-icon.png" density="xhdpi"/>
    <icon src="resources/android/icon/drawable-xxhdpi-icon.png" density="xxhdpi"/>
    <icon src="resources/android/icon/drawable-xxxhdpi-icon.png" density="xxxhdpi"/>
    <splash src="resources/android/splash/drawable-port-ldpi-screen.png" density="port-ldpi"/>
    <splash src="resources/android/splash/drawable-port-mdpi-screen.png" density="port-mdpi"/>
    <splash src="resources/android/splash/drawable-port-hdpi-screen.png" density="port-hdpi"/>
    <splash src="resources/android/splash/drawable-port-xhdpi-screen.png" density="port-xhdpi"/>
    <splash src="resources/android/splash/drawable-port-xxhdpi-screen.png" density="port-xxhdpi"/>
    <splash src="resources/android/splash/drawable-port-xxxhdpi-screen.png" density="port-xxxhdpi"/>
</platform>

我检查了plaftorm / android / res但是图标和启动画面都没有改变。

I checked plaftorm/android/res but icon and splashscreen are not changed.

我删除并重新添加平台但没有效果。

I delete and re add the platform but it has no effect.

编辑:

我确定图像存在于资源目录中,就像我之前说的那样,我已经使用了离子CLI命令离子资源

I sure image exists in resources directory and like I said before i already use ionic CLI command ionic resources

这是我的资源图标

平台ios中的这个图标

和平台中的此图标android

this my resources icon this icon in platform ios and this icon in platform android

推荐答案

这是一个科尔多瓦问题。 https://github.com/driftyco/ionic-cli/issues/1608
卸载cordova(6.4.0)并将其降级为6.3.1

It's a cordova issue. https://github.com/driftyco/ionic-cli/issues/1608 Uninstall cordova(6.4.0) and downgrade it to 6.3.1

npm uninstall -g cordova
npm install -g cordova@6.3。 1

npm uninstall -g cordova npm install -g cordova@6.3.1

之后删除Android平台并重新添加。

After that remove the Android platform and add it again.

这篇关于离子应用程序图标在android中没有变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆