如何将安卓模拟器连接到互联网 [英] How to connect android emulator to the internet

查看:36
本文介绍了如何将安卓模拟器连接到互联网的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将我的 Android 模拟器连接到互联网,例如使用浏览器?我找到了很多关于当您通过代理连接时该怎么做的建议,但这里的情况并非如此,我的机器 (Windows 7) 直接连接到路由器.

How can I connect my Android emulator to the internet, e.g. to use the browser? I've found lots of advice on what do to when your connected through a proxy, but that's not the case here, my machine (Windows 7) is directly connected to the router.

推荐答案

我认为一些答案可能已经解决了这个问题,无论多么间接,但这对我有用.

假设您的问题是在您使用无线网络并且安装了 LAN 卡时发生的,那么问题在于模拟器尝试从该 LAN 卡获取其 DNS 设置.当您通过该 LAN 连接时,这不是问题,但如果您使用无线连接,则完全没用.我在使用笔记本电脑时注意到了这一点.

那么,如何修复?简单:禁用您的 LAN 卡.真的.只需转到您的网络连接,找到您的 LAN 卡,右键单击它并选择禁用.现在试试你的模拟器.如果你像我一样,它会突然......有效!

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!

这篇关于如何将安卓模拟器连接到互联网的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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