Application Error - The connection to the server was unsuccessful. (file:///android_asset/www/index.html)

后端 未结 16 1937
小蘑菇
小蘑菇 2020-11-28 01:28

App Dies On Startup (connection to the server was unsuccessful)

I have an Android application that I\'m writing using PhoneGap BUILD. The app was working fine earli

16条回答
  •  南方客
    南方客 (楼主)
    2020-11-28 02:11

    I had the same on my project.

    I tried " super.setIntegerProperty("loadUrlTimeoutValue", 70000); " but to no avail.

    I ensured all files were linked properly [ CSS, JS files etc ], validated the HTML using w3c validator [ http://validator.w3.org/#validate_by_upload ] , and cleaned the project [ Project -> Clean ]

    It now loads and executes without the same error.

    Hope this helps

提交回复
热议问题