我试过了:
- 在 myapp/platforms/android/res/drawable/icon.png 更改文件
- 编辑 www/config.xml 中的标签
- 小小的牺牲
谢谢!
If you have correctly updated your icon files in platforms/ios/YourAppName/Resources/icons
and you still can't see the change then make sure you:
Product > Clean
and then re run your app.您需要替换 res 文件夹中的所有图标文件。完成后,只需清理 eclipse 项目并运行。
although you accepted a different answer, that did not help me so for some of you reading this please note the following:
you need to use something like this in you config.xml:
<icon src="icon.png" />
<icon gap:platform="android" gap:qualifier="ldpi" src="img/icons/android/icon-36-ldpi.png" />
<icon gap:platform="android" gap:qualifier="mdpi" src="img/icons/android/icon-48-mdpi.png" />
<icon gap:platform="android" gap:qualifier="hdpi" src="img/icons/android/icon-72-hdpi.png" />
<icon gap:platform="android" gap:qualifier="xhdpi" src="img/icons/android/icon-96-xhdpi.png" />
<icon gap:platform="ios" height="57" src="img/icons/ios/icon-57.png" width="57" />
<icon gap:platform="ios" height="72" src="img/icons/ios/icon-72.png" width="72" />
<icon gap:platform="ios" height="114" src="img/icons/ios/icon-57-2x.png" width="114" />
<icon gap:platform="ios" height="144" src="img/icons/ios/icon-72-2x.png" width="144" />
<icon gap:platform="winphone" src="img/icons/windows-phone/icon-48.png" />
<icon gap:platform="winphone" gap:role="background" src="img/icons/windows-phone/icon-173-tile.png" />
please note that the path is img/bla-bla-bla ... it can be whatever you want ... BUT ... that path it is relative to you www folder ... so it will actually map to www/img/bla-bla-bla
hope this helps someone ... i found it the hard way :)
Rares