Andorid Studio New simulator networking issues can not

1, view the machine's own dns
cmd  -> ipconfing /all
2, modify the PC simulator dns consistent with this machine.
 Turn on the simulator -> cmd -> adb root (requires root privileges to, DNS settings emulator) -> adb shell -> getprop (get simulator system properties, find inside net.dns1, net.eth0.dns1 according to specific own simulator situation) -> setprop net.eth0.dns1 192.168.1.1 (specifically modified according to your own PC's DNS settings, view inside the simulator DNS, modify the success that can be networked)

Guess you like

Origin www.cnblogs.com/changeMsBlog/p/11256473.html