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


当前回答

就我而言,我只需要从“Android SDK和AVD管理器”中启动Android虚拟设备(AVD),它就可以工作了

其他回答

我也遇到过同样的问题。 我找到的最简单的解决方法是:

转到Android\Sdk\emulator文件夹,打开命令提示符。 输入emulator -list-avds查看可用的模拟器名称。 输入模拟器-avd name-of-your-device -netdelay none -netspeed full -dns-server 8.8.8.8命令,按“enter”。

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

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

希望对大家有帮助 多亏了

我在android 4.4上采取了以下措施: 设置->无线和网络->移动网络 ->确认已开启“数据开启”和“数据漫游”。

I think some of the answers may have addressed this, however obliquely, but here's what worked for me. Assuming your problem is occurring when you're on a wireless network and you have a LAN card installed, the issue is that the emulator tries to obtain its DNS settings from that LAN card. Not a problem when you're connected via that LAN, but utterly useless if you're on a wireless connection. I noticed this when I was on my laptop. So, how to fix? Simple: Disable your LAN card. Really. Just go to your Network connections, find your LAN card, right click it and choose disable. Now try your emulator. If you're like me, it suddenly ... works!

我解决了这个问题,我禁用了所有的网络连接,除了我正在使用的wifi连接,然后将剩余的启用连接的属性设置为静态分配的DNS地址。(没有DHCP)这是Win7 64bit