Android 2.1-update1 AVD无法成功连接到Charles Web Proxy 3.6

Android 2.1-update1 AVD无法成功连接到Charles Web Proxy 3.6,android,charles-proxy,Android,Charles Proxy,在Windows 7上的管理员命令提示符下,我键入: C:\Program Files (x86)\Android\android-sdk\tools>emulator -avd Nexus -http-proxy localhost.:8888 -port 5554 -debug-proxy 我返回以下文件: C:\Program Files (x86)\Android\android-sdk\tools>server name 'localhost.' resolved to

在Windows 7上的管理员命令提示符下,我键入:

C:\Program Files (x86)\Android\android-sdk\tools>emulator -avd Nexus -http-proxy localhost.:8888 -port 5554 -debug-proxy
我返回以下文件:

C:\Program Files (x86)\Android\android-sdk\tools>server name 'localhost.' resolved to 127.0.0.1:8888
proxy_http_setup: creating http proxy service connecting to: localhost.:8888
server name 'localhost.' resolved to 127.0.0.1:8888
proxy_http_setup: creating HTTP Proxy Service Footer is (len=2):
'
'
http_service_connect: trying to connect to (null)
http_service_connect: using HTTP rewriter
tcp:(null)(252): connecting
tcp:(null)(252): connected to http proxy, sending header
tcp:(null)(252): sending 27 bytes:
>> 43 4f 4e 4e 45 43 54 20 28 6e 75 6c 6c 29 20 48    CONNECT (null) H
>> 54 54 50 2f 31 2e 31 0d 0a 0d 0a                   TTP/1.1....

tcp:(null)(252): header sent, receiving first answer line
tcp:(null)(252): received 'HTTP/1.0 503'
tcp:(null)(252): connection refused, error=503
http_service_connect: trying to connect to (null)
http_service_connect: using HTTP rewriter
tcp:(null)(332): connecting
http_service_free
C:\Program Files (x86)\Android\android-sdk\tools>emulator -avd Nexus -http-proxy 192.234.2.90:8888 -debug-proxy

C:\Program Files (x86)\Android\android-sdk\tools>server name '192.xxx.2.xx' resolved to 192.xxx.2.xx:8888
emulator: Could not connect to proxy at 192.xxx.2.xx:8888: resource temporarily unavailable !
emulator: Proxy will be ignored !
在emulator中打开浏览器时,在Charles中有以下条目:

null:0
Failed
CONNECT request didn't include a port: (null)
HTTP/1.1
CONNECT
/127.0.0.1
如果我尝试使用我的IP地址,我会收到以下信息:

C:\Program Files (x86)\Android\android-sdk\tools>server name 'localhost.' resolved to 127.0.0.1:8888
proxy_http_setup: creating http proxy service connecting to: localhost.:8888
server name 'localhost.' resolved to 127.0.0.1:8888
proxy_http_setup: creating HTTP Proxy Service Footer is (len=2):
'
'
http_service_connect: trying to connect to (null)
http_service_connect: using HTTP rewriter
tcp:(null)(252): connecting
tcp:(null)(252): connected to http proxy, sending header
tcp:(null)(252): sending 27 bytes:
>> 43 4f 4e 4e 45 43 54 20 28 6e 75 6c 6c 29 20 48    CONNECT (null) H
>> 54 54 50 2f 31 2e 31 0d 0a 0d 0a                   TTP/1.1....

tcp:(null)(252): header sent, receiving first answer line
tcp:(null)(252): received 'HTTP/1.0 503'
tcp:(null)(252): connection refused, error=503
http_service_connect: trying to connect to (null)
http_service_connect: using HTTP rewriter
tcp:(null)(332): connecting
http_service_free
C:\Program Files (x86)\Android\android-sdk\tools>emulator -avd Nexus -http-proxy 192.234.2.90:8888 -debug-proxy

C:\Program Files (x86)\Android\android-sdk\tools>server name '192.xxx.2.xx' resolved to 192.xxx.2.xx:8888
emulator: Could not connect to proxy at 192.xxx.2.xx:8888: resource temporarily unavailable !
emulator: Proxy will be ignored !
如何在Android模拟器上正确运行Charles

我已经阅读了关于在模拟器运行时在设置中设置代理和端口的其他文章,但是在启用-debug proxy时,我收到了类似的错误


谢谢。

最新版本的Android开发工具r12似乎有问题


指示从r11降级到emulator二进制将修复此问题。转到并将操作系统URL中的“12”更改为“11”。将该SDK安装到与现有SDK不同的目录中,并使用该模拟器版本,直到Google解决问题。

最新版本的Android开发工具r12似乎存在问题


指示从r11降级到emulator二进制将修复此问题。转到并将操作系统URL中的“12”更改为“11”。将该SDK安装到现有SDK的一个单独目录中,并使用该仿真程序版本,直到Google修复该问题。

作为对其他查看此问题的人的更新,此问题已在r13中解决,作为对其他查看此问题的人的更新,这个问题已经在r13中解决了,这是一个在3.9版本中修复的错误。

这是一个在3.9版时修复的错误。

看来我在操作系统10.6.8上的r12也有同样的问题。与r11配合使用。我也在Mac上使用r12。我下载了r11软件包,并将模拟器可执行文件从r11软件包移动到我现有的android-sdk-mac_86/tools目录中。现在我的android应用程序可以上网了。看起来我在OS 10.6.8上的r12也有同样的问题。与r11配合使用。我也在Mac上使用r12。我下载了r11软件包,并将模拟器可执行文件从r11软件包移动到我现有的android-sdk-mac_86/tools目录中。现在我的android应用程序可以上网了。我发现了类似的问题,我正在运行r14。还有人看到这个问题吗?谢谢。我发现了类似的问题,我正在运行r14。还有人看到这个问题吗?谢谢