I\'m using phonegap to develop an application on android, when I test it on my phone I get this error Application Error Is a directory (file:///#android_asset/www/inde
I found the answer.
Include the phonegap.js inside your tag. It is required by phonegap during build time.
You don't need to download the phonegap.js. All you just need is to include the code as shown. During build phonegap will look for it and include it automatically. If not, when you run your Native application, the application will be looking for phonegap.js on the phonegap server and this takes too long. Eventually your application load will time out with the error message you are seeing.
Wow! I can believe this. I ran into this problem and I got discouraged and almost gave up using phonegap. However, I read it in Phonegap's website about phonegap.js under the sub-heading below
https://build.phonegap.com/docs/app-overview
"Making Sure You can Still Access the PhoneGap API"
"Once you've deleted the phonegap.js you'll need to make sure that your application can still access the PhoneGap API.
To do so, simply ensure that the following reference is made in your index.html"
This is like magic. It works.
Cheers everyone.