Android 2.1的模拟器没有互联网连接 [英] Android 2.1 Emulator Without Internet Connection
问题描述
我在Android模拟器无法上网。
I have no Internet access in my Android Emulator.
该应用程序,我发展需要互联网连接,但Android模拟器有没有互联网连接。我也试着使用仿真器的本地浏览器,但它也不能正常工作。
当我我的应用程序导出到一个真正的Android,它工作得很好。
The app I am developing needs Internet connection, but the Android Emulator have no internet connection. I also tried to use the native browser of the emulator, but it also does not work. When I export my app to a real android, it works just fine.
我已经试过preSS F8打开和关闭在模拟器的3G连接。
I already tried to press F8 to turn on and off the "3G connection" in the emulator.
我已经关闭了Windows防火墙,但没有奏效。
I already turned off the Windows Firewall, but it didn't work.
数据:
Windows 7的64位
Eclipse插件为Android
Android版本2.1
Data: Windows 7 x64 Eclipse Plugin for Android Android version 2.1
推荐答案
我不得不手动设置我的仿真器的DNS服务器。
I had to set manually the DNS Server of my emulator.
要做到这一点:
在Eclipse中我去运行配置 - >目标,并补充说:-dns服务器X.X.X.X和随后的一切工作得很好。 (显然X.X.X.X是我的DNS服务器的IP地址)。
Within Eclipse I went to Run Configurations -> Target and added "-dns-server X.X.X.X" and everything worked fine afterwards. (obviously X.X.X.X was the IP address for my DNS server).
所以我把这个行:-debug-SLIRP -dns服务器192.168.178.1
so i put this line: -debug-slirp -dns-server 192.168.178.1
这篇关于Android 2.1的模拟器没有互联网连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!