需要,我在命令提示符下使用以下命令来启动模拟器运行仿真器的代理服务器设置
模拟器-avd AVD_for_3_7_WVGA_Nexus_One -http代理的http://用户名:密码@ IP:端口
,没有HTTP代理开关它工作正常,因为那里使用HTTP代理下列错误:
FATAL://安卓/底座/插座/ SocketWaiter.cpp:89:检查失败:isValidFd(FD)。 FD 1404 max1024
解决方案
我遇到完全相同的问题。
幸运的是,有一种变通方法,我可以说,它的工作(至少在我的情况):添加 - 无音频
参数命令:
模拟器-avd<设备_> -no音频-http代理HTTP://<用户名:密码@> IP:端口
编辑:即使它为你工作,请明星错误得到它固定的!
need to run emulator with proxy settings , I am using the following command in command prompt to start emulator
emulator -avd AVD_for_3_7_WVGA_Nexus_One -http-proxy http://username:password@IP:Port
Without http-proxy switch it is working fine , where as using the http-proxy following error occured :
FATAL:.//android/base/sockets/SocketWaiter.cpp:89:Check failed: isValidFd(fd). fd 1404 max1024
解决方案
I'm experiencing the exact same issue.
Luckily there is a workaround and I can say it's working (at least in my case): adding the -no-audio
parameter to the command:
emulator -avd <device_name> -no-audio -http-proxy http://<username:password@>IP:Port
edit: even if it's working for you, please star the bug to get it fixed!