Android 模拟器在一段时间后失去互联网连接
我在使用 Android 模拟器时遇到了问题,这个是 Android 2.3.3,但我在其他版本上也遇到了问题。
当我启动模拟器时,有一段时间一切都运行良好。但在某些时候(我不知道多长时间)它会停止工作,我必须重新启动它。
每次都会出现这种情况,重启一下就可以解决。我尝试过打开和关闭网络,但这没有帮助。
我在 logcat 中得到的异常是“java.net.UnknownHostException: foo.com”
任何帮助将不胜感激!提前致谢!
I'm having trouble with the android emulator, this one is Android 2.3.3 but i've had trouble with other versions as well.
When i start the emulator everything works great, for a while. But at some point (I don't know how long) it just stops working and i have to restart it.
It happens every time, and restarting it always fixes it. I've tried toggling the network on and off but that doesn't help.
The exception I get in logcat is "java.net.UnknownHostException: foo.com"
Any help would be appreciated! Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在研究同一问题时发现了这个链接。 DNS 服务器修复对我有用。
http://www.gitshah.com/2011/02 /android-fixing-no-internet-connection.html
I came across this link while researching the same issue. The DNS server fix worked for me.
http://www.gitshah.com/2011/02/android-fixing-no-internet-connection.html