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 VPN(If your test environment don't need VPN, skip this step)
  2. “cmd” open the command line window, input “ipconfig -all”, to see your DNS

                       

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

 

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

 

  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

 

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

 posted on 2013-02-21 11:33  兰猫-兰兰  阅读(197)  评论(0编辑  收藏  举报