: [10.0.2.3]
[net.dns2]: [10.0.2.4]
4、把dns改成我们自己的DNS
setprop net.dns1 192.168.1.1
注:一般TP-LINK及D-LINK的DNS都是192.168.1.1,如果不是请使用ipcnofig /all命令确认。
三:直接带参数启动模拟器
emulator @default -http-proxy 10.16.xx.xx:8080
其中default是模拟器的名称
四:在模拟器中设置
启动模拟器,然后进入 Settings->Wireless & networks->Mobile networks->Access Point Names
然后打开出现在
列表中的access point;
然后下面这样设置:
- Proxy : your proxy address
- Port : your proxy port
- Username : your username if needed, or
- Password : your password if needed, or