PhoneGap “Failed to load resource: the server responded with a status of 404 (Not Found)”

后端 未结 3 1736
遇见更好的自我
遇见更好的自我 2020-12-04 00:30

I have a web application that I recently tried converting into PhoneGap, but for some reason, when running it on my android, it doesn\'t have access to the internet. When de

3条回答
  •  情深已故
    2020-12-04 01:12

    Using the Desktop App and PhoneGap Build I was having the same problem.

    The issue was that index.html and config.xml were not in the root when first created in Desktop App. This is required according to http://docs.build.phonegap.com/en_US/introduction_getting_started.md.html.

    Because they were in different folders, no configuration and no whitelist was loaded into the app resulting in a bunch of 404's.

    To fix, I just moved config.xml into the same root directory as index.html and rebuilt on PhoneGap Build.

提交回复
热议问题