Cordova/Phonegap - Android: Icon not updating

android, cordova, icons

Solution

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" *

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

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!

Problem

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!

Original source

Related problems