如何设置Android模拟器的Internet选项? [英] How to set Internet options for Android emulator?

查看:159
本文介绍了如何设置Android模拟器的Internet选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用这种方法来访问互联网从我的Andr​​oid模拟器 模拟器 -http代理<<代理名称>> -avd<< avd_name>>

I've been using this method to gain access to internet from my Android emulator emulator -http-proxy <<proxy-name>> -avd <<avd_name>>

它的工作原理,但是是最好的方式做到这一点? 它只是感觉不对,我需要打开命令行模拟器并不能仅仅从Eclipse或某事做。

It works but is that the best way to do it? It just doesn't feel right that I need to open the emulator from command line and can't just do it from Eclipse or something.

似乎无法找到关于AVD管理互联网选项,无论是。

Can't seem to find an internet option on the "AVD Manager" either.

推荐答案

您也可以尝试显式指定的DNS服务器设置,这为我工作。

You could also try explicitly specifying DNS server settings, this worked for me.

在Eclipse中:

窗口> preferences>安卓>启动

Window>Preferences>Android>Launch

默认仿真器选项:-dns服务器8.8.8.8,8.8.4.4

Default emulator options: -dns-server 8.8.8.8,8.8.4.4

这篇关于如何设置Android模拟器的Internet选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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