Android Emulator can't connect to internet

When using Emulator to develop apps, sometimes it can not connect to the internet. That is, you can't test your app for API calling, or loading WebView, etc...

If you are using Eclipse, you can fix it by:
- In Eclipse Menu, open Window » Preferences (or press Alt + W).
- Select Android Launch to open Launch Settings.
- In Default emulator options, fill -dns-server 8.8.8.8,8.8.4.4 (Google DNS).
- Reset the Emulator.


Leave a Reply

Powered by Blogger.