Open the simulator ( "..\android-sdk\AVD Manager.exe")
Go to Tools
进入选项
关于代理设置:
在第一个字段(HTTP Proxy Server)上,只设置代理的 IP 地址(XXX.XXX.XXX.XXX)
在第二个字段上设置代理的端口(例如: 8080)
然后,单击窗口上的 Close 并启动模拟器
——补充..。
然后 Alex 的步骤对我的案子有帮助:
Click on Menu
Click on Settings
Click on Wireless & Networks
Go to Mobile Networks
Go to Access Point Names
Here you will Telkila Internet (or other name), click on it.
In the Edit access point section, input the "proxy" and "port"
In case if you are under proxy environment and internet is not running in your emulator, then please don't change any setting in emulator. Go to your eclipse project, right click , click on "Run as" then click on "Run Configuration".
在弹出窗口中选择“目标”并向下滚动一点,
您会发现“其他模拟器命令行选项”
在我输入的“其他模拟器命令行选项”中输入您的代理设置