My machine is using a WiFi connection for internet, and the LAN card is idle. it\'s not behind a proxy or firewall, but somehow, my emulator\'s browser isn\'t loading any page.
I have searched long and hard for an answer to this question. From what I gather Google did that on purpose once people started using emulators to add spam comments to the market. However, I did find a guy who had done it and was willing to share the required images.
NOTE: It looks like it's just going to fix the market. But the market won't run without internet, so if the market is fixed, the browser internet will work too. I downloaded the linked files myself and it showed the internet in the browser perfectly.
I have Disable all the other WiFi & LAN connections. Make only single connection enable, with which you have to work with. [Check the connections from "Network Connections"] & Restart the machine works for me.
I had the same problem with OS X. I have been working for 2 days now to get the emulator to connect to the internet, all solutions I have read so far (use -dns-server
, use proxy settings or disable unused netword devices) didn't work.
This morning I started the emulator with sudo ./emulator -avd my_avd_name
and it worked! Emulator was able to connect to the internet.
So there is something wrong with privileges or so, I need to figure this out. But it works for the moment.
I don't know what happened, but I disabled the USB WiFi dongle and switched to a cabled network, and it started working. don't know what the reasons were, but I am happy now that it worked.
May be this is useful to others too!
Open up a terminal on the development machine and trying resolving and pinging by name and by ip various known-good internet hosts.
Then open up an adb shell to the emulator and try the same things from there
In Windows, run the AVD Manager with administrator privileges. It worked for me.