As we all know, we use cisco client in our VM, and the android simulator cannot connect to internet in our VM. Tell you the resolve method:

 

Detail Steps:

  1. Connect to v*n(If your test environment don't need v*n, skip this step)
  2. “cmd” open the command line window, input “ipconfig -all”, to see your DNS

 How to resolve the Adroid simulator net issue in VM                      

      3. Go to the platform-tool, input adb shell command then enter, you can go into the simulator Linux system

 How to resolve the Adroid simulator net issue in VM

  4. “getprop” to get all the properties of this android simulator

 How to resolve the Adroid simulator net issue in VM

  5. Pay attention here, your initial NET.DNS1 my be 10.0.2.3, so update this dns to you’re the dns of your VM we searched on step 2, here use “setprop net.dns1 192.168.*.1”, the yellow part is your VM’s DNS

 How to resolve the Adroid simulator net issue in VM

  6. Then you can input command line “getprop” to check if you android simulator can connect to the internet or not.

转载于:https://www.cnblogs.com/ilazysoft/archive/2013/02/21/2920283.html

相关文章: