phonegap, connection to server unsuccessful

前端 未结 5 1891
花落未央
花落未央 2020-12-15 08:35

I\'m trying to write an Android app with phonegap, and I\'m writing a static front page with buttons, which was working until I introduced jQuery mobile and jQuery (which ar

5条回答
  •  半阙折子戏
    2020-12-15 09:04

    I suspect that the problem is that you have the super.loadUrl() entered incorrectly. loadUrl should have this string file:///android_asset/www/index.html and actually be located in assets/www/.

    The missing 's' threw me off personally.

    Edit:

    Some other things to check:

    • The browser is able to access the internet
    • Permissions to access the internet.
    • Try downloading the jquery, and jqm libraries to the device and storing them with index.html. Because the emulator is slow, it may be interfering with the page's response to downloading the libraries. Storing locally should avoid that.

提交回复
热议问题