Android5.0 Simulator cannot surf the internet

Source: Internet
Author: User

Recently downloaded android5.0.1 code compiled by the emulator is unable to surf the internet, prompting net::err_name_not_resolved.

Search the Internet, the solution is simple:

1. Start the simulator

2. For example:


ADB shell Getprop net.dns1//view DNS value adb shell setprop net.dns1 192.168.1.1//Set DNS, usually your router's IP (this IP can set the routing properties, should all understand it)


Now there is a situation like this: I set the value of the net.dns1 to a different value (such as 192.168.1.10), which is not on the net, Then set back to 192.168.1.1, unexpectedly also go up, and then set back to Android default 10.0.2.3, or not to go, and finally I restarted the simulator (note that the DNS is 10.0.2.3), after restarting unexpectedly can be on ... This god horse situation!!! If you don't want to go back, you can switch between the two addresses to try again.

Android5.0 Simulator cannot surf the internet

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.