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


当前回答

我也有类似的问题。我安装了一个需要INTERNET权限的应用程序(并使用了它),然后突然就工作了。

朋友们,还要检查一下你是否在某个地方没有通过VPN连接,因为它也会干扰互联网连接。

blacharnia

其他回答

当我第一次运行模拟器时,我遇到了这个问题,我通过设置dns服务器来解决

Library/Android/sdk/platform-tools/adb shell getprop net.dns1

获取模拟器10.0.2.3的当前DNS服务器

然后设置它到我的局域网dns服务器

Library/Android/sdk/platform-tools/adb shell setprop net.dns1 192.168.1.1

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

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

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

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

点击APN。输入www。

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

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

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

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

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

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

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

是的——在win7中使用管理员privs启动模拟器,一切都会很好——或者至少你会在android中获得无线。

我的服务订单首选项是正确的(Wi-Fi是第一个),但仍然无法连接。

答案是,从霹雳桥转弯:

系统参数>网络>霹雳桥

然后将“配置IPv4”设置为“关闭”,并应用您的更改。

不需要在模拟器中摆弄访问点。