在真机上启动ionic3打包成的android APK,启动了很久结果弹出这个问题:

Application Error - The connection to the server was unsuccessful

可能是我项目资源太多东西了,启动的时间太久了,导致超时了。

解决方案是在项目目录下的config.xml文件里添加这句,设置一个超时的时间,再重新编译启动,ok完美解决。

<preference name="loadUrlTimeoutValue" value="100000" />

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2021-09-10
  • 2022-01-01
  • 2021-10-09
  • 2022-02-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案