Phonegap Build - 设备上没有应用程序图标 [英] Phonegap Build - No App Icon on Device
问题描述
我有一个小的移动应用程序,上传到Phonegap Build,捆绑应用程序为不同的平台,我现在只感兴趣在Android捆绑包。
I have a small mobile app that was uploaded to Phonegap Build to bundle the app for different platform, I only insterested in the android bundle for now.
是上传应用程序和phonegap给我的apk安装在我的设备,图标启动设备上的应用程序是通用phonegap图标,我已经添加到我的配置文件和文件在位置正确的图标文件夹
The challenge is after uploading the app and phonegap gives the apk I install on my device, the icon to launch the app on the device is the generic phonegap icon, I already added this to my config file and the files are in place correctly in the icon folder
<!-- Define app icon for each platform. -->
<icon src="icon/icon.png" />
<icon src="icon/icon_036.png" gap:platform="android" gap:density="ldpi" />
<icon src="icon/icon_048.png" gap:platform="android" gap:density="mdpi" />
<icon src="icon/icon_072.png" gap:platform="android" gap:density="hdpi" />
我还注意到,在res文件夹中打开带winrar的apk时,我仍然有默认的phonegap图标
I also observed that on opening the apk with winrar in the res folder I still have the default phonegap icon in place while my splash screen has been updated and working on device normally.
我遗漏了什么?
推荐答案
我遇到了类似的问题。请检查您的 config.xml
文件是否与 index.html
在同一个文件夹中一个名为图标的单独文件夹
,并将 icon.png
放在该文件夹中。
I faced a similar problem. Please see if your config.xml
file is in the same folder as index.html
and in that same folder you make a separate folder named icon
and place icon.png
in that folder. You are also making the mistake of not giving icon a default tag:
<icon src="img/icon.png" gap:role="default" />
试试看!
这篇关于Phonegap Build - 设备上没有应用程序图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!