在推出Android模拟器PhoneGap的应用程序时,“连接到服务器失败”的错误 [英] 'Connection to the server was unsuccessful' error when launching phonegap app on android emulator

查看:173
本文介绍了在推出Android模拟器PhoneGap的应用程序时,“连接到服务器失败”的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的PhoneGap构建一个Android应用程序,该应用程序的组合 PhoneGap的+ jQuery Mobile的。

应用程序成功启动在模拟器中,我能够调试应用程序,直到昨天。

今天,应用程序只是拒绝启动在模拟器上,我不断收到此错误

 九月六号至25日:03:24.453:信息/的System.out(305):onReceivedError:错误code = -6说明=到服务器的连接失败。 URL =文件:///android_asset/www/index.html
 

解决方案

这似乎是一个PhoneGap的0.9.3的问题,其他人反映了同样的问题(见的此处或在这里

这个问题可能通过改变loadUrlTimeoutValue来解决

  this.setIntegerProperty(loadUrlTimeoutValue,70000);
 

I am using PhoneGap to build an Android application, the application is a combination of phonegap + jquery mobile.

The application successfully launches in the emulator and I was able to debug the application, until yesterday.

Today the application just refuses to launch on the emulator, and I keep getting this error

06-25 09:03:24.453: INFO/System.out(305): onReceivedError: Error code=-6 Description=The connection to the server was unsuccessful. URL=file:///android_asset/www/index.html

解决方案

This seems to be a phonegap 0.9.3 issue, as other people have reported the same problem (see here or here)

The problem might be solved by changing the loadUrlTimeoutValue

this.setIntegerProperty("loadUrlTimeoutValue", 70000);

这篇关于在推出Android模拟器PhoneGap的应用程序时,“连接到服务器失败”的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆