科尔多瓦/ PhoneGap的 - 安卓图标不更新
我使用的是科尔多瓦3.3.0(CLI),我更换了www / RES /图标/ Android的文件夹图标,按照文档的说明(的 http://cordova.apache.org/docs/en/3.3.0/config_ref_images.md.html )。 问题是,当我建立和发送应用程序到我的手机(科尔多瓦运行Android),该图标仍然是默认的,即使我重新安装之前卸载从我的手机应用程序。 在任何建议如何解决此问题?谢谢!
I'm using cordova 3.3.0 (CLI) and I replaced the icons in the www/res/icons/android folder, as per docs instructions (http://cordova.apache.org/docs/en/3.3.0/config_ref_images.md.html). The problem is, when I build and send the app to my phone (cordova run android), the icon is still the default one, even if I uninstall the app from my phone before installing again. Any advise on how to solve this? Thanks!
我使用 http://ionicframework.com/ 建立我应用程序,它使用的科尔多瓦。我遇到同样的问题,因为你能够非常容易地解决这个问题。
I am using http://ionicframework.com/ to build my app and it uses cordova. I ran into the same issue as you and was able to fix it very easily.
我的建议首先是要你的项目的根目录并运行以下内容:
What I suggest first is going to the root of your project and running the following:
的grep -nr的icon.png*
grep -nr "icon.png" *
这将列出所有引用到的icon.png,可以给你所在的文件被复制到了一个想法。我也更新了我的android / RES /可绘制文件夹没有运气。但在运行grep命令上面我注意到,图标被复制到后:
This will list all the references to the icon.png and can give you an idea of where the files are being copied to. I too updated my android/res/drawable folders to no luck. But after running the grep command above I noticed that the icons were being copied into:
/platforms/android/ant-build/res/drawable-xhdpi/icon.png
/platforms/android/ant-build/res/drawable-xhdpi/icon.png
我浏览到这个文件夹,发现图像是默认的科尔多瓦PNG图像。我每次更新绘制与我的图标,现在一切都很好。
I navigated to this folder and noticed that the images were the default cordova png images. I updated each drawable with my icons and now all is well.
希望这可以帮助解决问题。祝您好运!
Hopefully this can help resolve your issue. Best of luck!