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


当前回答

it appears there might be a few reasons why there might be no internet connection for an emulator, in my case i was working from home where i have a wireless connection then came into the office and plugged in direct, however although my wireless connection was disconnected it was not disabled resulting in no emulator connection. my understanding is that when it starts up it looks for a network adapter and if there is any conflict here it might result in no internet connection. to resolve go to Start > Settings > Network Connections right click on Wireless Network Connection (if you are not using wireless) and select disable

其他回答

我在Web浏览器中没有网络连接,安装Android SDK (Replicant开源版本)后使用WLAN,与禁用LAN卡或DNS服务器不使用DHCP无关。我的问题是:设置->无线和网络->移动网络->“数据启用”没有被选中。这是所有。

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

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

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

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

点击APN。输入www。

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

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

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

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

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

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

如果你用的是Mac,试试这个

去苹果图标->系统首选项->网络 点击齿轮图标,选择“设置服务订单” 将活动接口置于其他接口之前。 重新启动Android模拟器。

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

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