如何将我的Android模拟器连接到互联网,例如使用浏览器?我已经找到了很多关于如何通过代理连接的建议,但这里不是这样,我的机器(Windows 7)是直接连接到路由器的。


当前回答

确保飞行模式是关闭的。我一直试图连接互联网很长一段时间,才意识到哪里出了问题。

其他回答

我在虚拟windows 7上也遇到了同样的问题。

转到网络连接 Alt >高级>高级设置… 在第二个选项卡将互联网网络界面放在顶部

希望对大家有帮助 多亏了

谢谢你的指点。他们真的帮了大忙。“防火墙”这个词勾起了我脑海中的一个念头。

我有一台Windows XP电脑,有WIFI连接,没有代理。我有诺顿网络安全运行在我的机器上,它有一个智能防火墙。这个智能防火墙管理程序对网络的访问,包括模拟器.exe。我进入设置->程序控制,然后授予模拟器.exe的完全访问权限。在这之后,我开始Android模拟器和bang…我可以上网。

希望这能对新人有所帮助。

~下垂的

I have Mac OS X 10.7.2, Eclipse Helios Service Release 2. I also work via Proxy and my IP settings are via DHCP. I solved this issue firstly using this article http://www.gitshah.com/2011/02/android-fixing-no-internet-connection.html, then I removed Emulator settings and just go to Run->Run Configurations->Target->Additional Emulator Command Line Options and type there -http-proxy xxx.xx.111.1:3128 . Also I would like to say that when I typed also a DNS like this: -dns-server xxx.xx.111.1 -http-proxy xxx.xx.111.1:3128 it did not work, but when I removed DNS it worked. Also I would like to note, that Additional Emulator Command Line Options are not visible without scrolling to the bottom of that window. I also want to note, that when you change emulator options, all apps will work. But If you write Additional Emulator Command Line Options, you need to write them every time for every app target in Run Configurations.

为了使用互联网通过代理模拟器尝试这些步骤,它为我工作:

进入设置->无线和网络->移动网络->接入点名称。 按菜单键。将出现一个选项菜单。

从选项菜单中选择新建APN。

单击“名称”。提供名称apn说我的apn。

点击APN。输入www。

点击代理。输入您的代理服务器IP。您可以从Internet explorer Internet选项菜单中获得它。

单击Port。输入端口号,在我的例子中是8080。您可以从Internet explorer Internet选项菜单中获得它。

单击User-name。以域名\user-name格式提供用户名。通常是你的系统登录。

点击密码。提供您的系统密码。

再次按菜单键。将出现一个选项菜单。

按下保存并尝试打开浏览器。我想这对你有帮助。

在Android模拟器中,打开飞机模式,然后再关闭,对我来说很管用。