Monday, July 21, 2014

Cordova on android is case sensitive for file/directory names!

I was playing on VS cordova development, and everything working on the Ripple plugin with chrome.  But deploy the app to the android has some wierd errors.

One of the HTML page doesn't load, claiming something like "Application Error
network error. (file:///android_asset/www/tutorial.html)".  It take me a long time to figure out what the problem is.  The file I'm referencing has a capital letter, where inside HTML, I'm referecing it as lowercase. This will pass the ripple emulator, but will fail on Android.  And I've to make sure I change both VS file name and the file name on the file system to make them match.

Similarily, the directory names, and all other referencing css/js file names are case sensitive.

I wish that VS editor understands it, and can some how warn me..