Ionic build android not installing config.xml in platform/android/assets/www


When I run “ionic build android”, the config.xml file is not showing up in platforms/android/assets/www. This causes the following error when I run in ripple:

GET http://localhost:8000/android/www/config.xml 404 (Not Found)

This must be some sort of user error on my part but I haven’t been able to figure it out.

I have tried running “ionic serve 9999” and “cordova serve”. I get the same error under both conditions.

Any help would be greatly appreciated.



When I manually created www/config.xml according to this guideline: things started working.

Hey there! So just curious, do you have a config.xml at the project level? What could have happened was an error in the cordova build and set up, which happens occasionally. If this is the case, it can be resolved by removing/adding the android project again.

Hi, I have config.xml at the project level for cordova and www/config.xml for phonegap. That seems to do the trick.

The cordova setup worked perfectly. I built the app and ran it on a native platform (android). Everything worked.

When I tried the same thing in phonegap (web based compiler), it did not work until I tweaked the www/config.xml.

It appears that I need both.