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