运行错误:Application Error - The connection to the server was unsuccessful
生活随笔
收集整理的這篇文章主要介紹了
运行错误:Application Error - The connection to the server was unsuccessful
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
?
在模擬器上上啟動ionic4.6版本 打包成的android APK,啟動了很久結(jié)果彈出這個(gè)問題:
Application Error - The connection to the server was unsuccessful
問題分析: PhoneGap某些版本的BUG,尤其在index.html加載的內(nèi)容較多時(shí)容易出現(xiàn) 解決方法:啟動時(shí)間默認(rèn)超時(shí)默認(rèn)是20s,現(xiàn)可以延長時(shí)間等待;如下操作
在項(xiàng)目目錄下的config.xml文件里添加這句,設(shè)置一個(gè)超時(shí)的時(shí)間,再重新編譯啟動;如果還是這樣則再增加時(shí)間;模擬器運(yùn)行較慢,建議在真機(jī)下啟動
<preference name="loadUrlTimeoutValue" value="100000" />轉(zhuǎn)載于:https://www.cnblogs.com/llw1996/p/10517169.html
總結(jié)
以上是生活随笔為你收集整理的运行错误:Application Error - The connection to the server was unsuccessful的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 关于可迭代对象、迭代器和生成器
- 下一篇: IdentityServer4环境部署失