PhoneGap Ripple Emulator always reports malformed config.xml

trejder picture trejder · Feb 12, 2013 · Viewed 9.5k times · Source

Does anyone have any idea, what can cause Ripple Emulator (newesest version) onboard newest version of Chrome to always report malformed or missing config file ("config.xml file could not be found in application's root or is malformed XML")?

I have my config.xml present exactly at application root (i.e. in the same folder, where index.html file, used to fire my mobile application). I don't think it's malformed since PhoneGap Bulid builds perfectly working applications (though tested only on Android) and does not reports any problems neither with configuration file nor with compilation process.

I'm getting this error not only on my own configuration files, but also on any PhoneGap application, that I've been working with -- including: PhoneGap Hello World example application, alluny's PhoneGap Start Application, Sencha Touch Kitchen Sink demo and others. Actually I haven't found any application in my local resources, that would not cause Ripple Emulator to report problems with config.xml file.

Of course, I set proper Chrome's settings, as instructed on Ripple Emulator page and I'm opening my Chrome with proper flag to allow it access local files via file:/// protocol.

Answer

Tyler Bengtson picture Tyler Bengtson · Jun 1, 2013

I am using the current Ripple UI (v0.9.15) and experienced this issue too.

For me the issue was caused by not having the config file in the right location. After I put it in the correct location, Ripple did not recognize it until I disabled/re-enabled Ripple.

What worked for me was:

  1. Make sure config.xml is in the www root with index.html (where you currently have it)
  2. Click on the green Ripple icon in the top left and disable Ripple for that page
  3. Re-enable Ripple