开发环境:Cordova版本:6.x

    安卓版本:6.0

解决方案一

    在config.xml中添加以下内容:

Cordova总是弹出Connection to server was Unsuccessful<preference name="LoadUrlTimeoutValue" value="70000"/>

 

 

 

 

 

解决方案二:

    新建一个index.html,在里面添加如下内容:

Cordova总是弹出Connection to server was Unsuccessful

 

 

 

 

其中main.html为原先的index.html

Reference:

http://stackoverflow.com/questions/23514622/cordova-connection-to-server-was-unsuccessful

https://cordova.apache.org/docs/en/latest/config_ref/index.html#preference

 

相关文章:

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