How to connect android emulator to the internet
If you are on Mac - try this -
- GoTo Apple Icon -> System Preferences -> Network
- Click on the gear icon on the and select 'Set Service Order'
- Bring the active interface before other interface.
- Restart the Android Emulator.
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!