Reputation: 145
i have downloaded the phonegap example from its website.but it doesn't run.i can't find the reason.help me to get the solution please.when i run it shows
"The Web page at file:///andriod_asset/www/index.html could not be loaded as: The requested file was not found.www/index.html"
Upvotes: 5
Views: 5554
Reputation: 2786
I was using capitals for the folder WWW which was causing the same error to be thrown. I have now changed it to lowercase which works well now.
Upvotes: 0
Reputation: 51
I tried with three "///" instead of four, it worked for me. Give a try super.loadUrl("file:///android_asset/www/index.html");
Upvotes: 5
Reputation: 347
You've spelt android wrong here:
HERE!!!
file://>>>>>>andriod<<<<<<_asset/www/index.html could not be loaded as: The requested file was not found.www/index.html"
Try out:
file:///android_asset/www/index.html could not be loaded as: The requested file was not found.www/index.html"
Best of luck!
Upvotes: 3
Reputation: 299
Just a quick comment for other's getting to this same problem, who doesn't have the spelling error. My new app using PhoneGap 0.9.4 was giving this same error box. The solution was to rename phonegap.0.9.4.js and phonegap.0.9.4.jar to just phonegap.jar and phonegap.js. After that it loads up.
Upvotes: 2
Reputation: 3256
You and I did the exact same thing -- flipped the i and the o in android.
Change "andriod" to "android" and it should work :)
Upvotes: 1