phonegap doesn't work

我怕爱的太早我们不能终老 提交于 2019-12-04 07:24:08

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

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!

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.

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

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

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.

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