How to connect android emulator to the internet

2018-12-31 07:48发布

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.

30条回答
刘海飞了
2楼-- · 2018-12-31 07:50

Thanks for the pointers. They really helped. The "Firewall" word clicked an idea in my mind.

I have a Windows XP machine with WIFI connection and no proxy. I have Norton Internet Security running on my machine which has a Smart Firewall. This Smart Firewall manages programs' access to network, including emulator.exe. I went into Settings -> Program Control and then granted full access to emulator.exe. After this I started Android Emulator and bang... I could connect to internet.

Hope this helps new folks.

~Saggy

查看更多
还给你的自由
3楼-- · 2018-12-31 07:50

yes--in win 7 start the emulator with administrator privs and all will be well--or at least you'll get the wireless going in android.

查看更多
一个人的天荒地老
4楼-- · 2018-12-31 07:50

I had a similar problem on Win7 64 bit. Tried disabling my hamachi and virtualbox adapters and didn't work. Tried starting avd as admin and didn't work. In the end I disabled the teredo tunneling adapter using the info on this site and it worked: http://www.mydigitallife.info/2007/09/09/how-to-disable-tcpipv6-teredo-tunneling-in-vista/

查看更多
爱死公子算了
5楼-- · 2018-12-31 07:52

In my case I just had to launch the Android virtual device (AVD) from the "Android SDK and AVD Manager", and it was working

查看更多
刘海飞了
6楼-- · 2018-12-31 07:52

My Service Order preferences were correct (Wi-Fi was first) but still could not connect.

Answer was to turn off the Thunderbolt Bridge:

System Preferences > Network > Thunderbolt Bridge

Then set Configure IPv4 to off and Apply your changes.

No need to screw around with Access Points in the emulator.

查看更多
浮光初槿花落
7楼-- · 2018-12-31 07:55

If you are behind a proxy in the SDK Manager, under Tools -> Options, do NOT configure the proxy settings. When you run from the command line add -http-proxy:

emulator.exe -avd YOUR_AVD_NAME_HERE -http-proxy PROXY:PORT

Worked for me.

查看更多
登录 后发表回答