phonegap doesn't work

两盒软妹~` 提交于 2019-12-06 02:49:44

问题


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"


回答1:


I tried with three "///" instead of four, it worked for me. Give a try super.loadUrl("file:///android_asset/www/index.html");




回答2:


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!




回答3:


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.




回答4:


You and I did the exact same thing -- flipped the i and the o in android.

Change "andriod" to "android" and it should work :)




回答5:


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.



来源:https://stackoverflow.com/questions/3384878/phonegap-doesnt-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!