Ionic-Android平台项目调试时出错:The connection to the server was unsuccessful
来源:互联网 发布:网络电视怎么用遥控器 编辑:程序博客网 时间:2024/05/16 18:23
最近都在搞Ionic的项目,今天在将项目中的Android平台代码提到 Android Studio 上调试时,出现下面的错误:
The connection to the server was unsuccessful. (file:///android_asset/www/index.html)
服务器连接失败,在我们的index.html文件中 1、加载的内容过多,2、依赖模块下载超时
我们可以在项目中的文件config.xml下,重新设置请求时间:
<platform name="android"> <preference name="loadUrlTimeoutValue" value="600000" /> </platform>由于是在测试Android平台时,才出现的错误,我们针对Android平台进行设置。
这样并不能根本性的解决问题,只是延长了错误提示框弹出的时间,如果超过了我们设置的60s,依赖模块仍然没有下载完,还是会提示错误。
该问题出现在三星设备中,当我更换设备进行测试时,并没有出现这个问题。
阅读全文
0 0
- Ionic-Android平台项目调试时出错:The connection to the server was unsuccessful
- PhoneGap开发出现 Application Error - The connection to the server was unsuccessful.
- 处理phonegap(cordova) application error the connection to the server was unsuccessful的错误
- the connection to the VMware USB Arbitration Service was unsuccessful.Please check the status of thi
- VMware启动错误信息: The connection to the VMware USB Arbitration Service was unsuccessful
- VMware启动错误信息: The connection to the VMware USB Arbitration Service was unsuccessful
- the connection to the VMware USB Arbitration Service was unsuccessful.Please check the status of this service in the Microsogt M
- VMware出现The connection for the USB device "###" was unsuccessful - Driver error原因
- eclipse启动Android调试出错:The connection to adb is down, and a severe error has occured.
- FTP——the connection with the server was reset
- Access Control Service The data protection operation was unsuccessful Error
- 真机调试遇见"The network connection was lost."
- 解决The connection was refused when attempting to contact localhost
- Android程序出错:The connection to adb is down, and a severe error has occured
- The network connection was lost.
- android 打包出错 Unable to build:the file dx.jar was not loaded from the SDK folder
- android解决The last packet sent successfully to the server was 0 milliseconds ago. The driver has not
- 解决"The underlying connection was closed: A connection that was expected to be kept alive was closed"
- It's likely that neither a Result Type nor a Result Map was specified
- MySQL知识点
- Viewpager自动轮播.循环(无误)
- javax.mail.AuthenticationFailedException异常的处理
- android sensor 3
- Ionic-Android平台项目调试时出错:The connection to the server was unsuccessful
- springboot-cloud-8-ribbon-source
- 201409-1相邻数对
- 警告- [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server-bui
- springboot项目打包过程中包含第三方jar
- ue4 log
- java开发微信项目总结(一) 基本概念介绍
- 排序算法之希尔排序
- VM VirtualBox安装centos时连不上网时如何处理