Can't find index.html in android app using phonegap

Posted on 27/12/2011 by Charalampos Chrysikopoulos

I 've experienced a strange situation, while trying to make my phonegap application run in the android emulator. The app worked in iphone, so I had the contents of the www directory ready to be tested.

I replaced the iphone's phonegap.js with the android's phonegap.js and added the phonegap-1.0.0.js library in the classpath. I followed all the steps as instructed in the getting started article in the phonegap homepage, and then I started the application for the first time.

And there was the error. The app couldn't find the index.html file in the assets/www directory. And it was strange because the file was there.

After searching a while in google, I found out that simply by renaming the phonegap-1.0.0.js file in phonegap.js fixes everything... A strange way to fix the problem, but it worked!

This entry was posted in mobile, Uncategorized and tagged android, phonegap by Charalampos Chrysikopoulos