Đây là dòng cmdCần giúp đỡ với Emulator Mạng Android
"C:\Progra~2\Android\android-sdk\tools\emulator.exe" -avd Touch -netspeed full -netdelay none -http-proxy localhost:3128 -debug-proxy
đây là giao diện điều khiển ra khi tôi cố gắng để mở google.com từ giả lập:
server name 'localhost' resolved to 127.0.0.1:3128
proxy_http_setup: creating http proxy service connecting to: localhost:3128
server name 'localhost' resolved to 127.0.0.1:3128
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)(880): connecting
tcp:(null)(880): connected to http proxy, sending header
tcp:(null)(880): 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)(880): header sent, receiving first answer line
tcp:(null)(880): received 'HTTP/1.0 400 Bad Request'
tcp:(null)(880): connection refused, error=400
http_service_connect: trying to connect to (null)
http_service_connect: using HTTP rewriter
tcp:(null)(888): connecting
Đây là ngoại lệ từ Wiktionary dụ gỡ lỗi
Caused by: java.net.ConnectException: en.wiktionary.org/91.198.174.232:80 - Connection refused
Giới thiệu về proxy của tôi: nó nằm trên máy cục bộ của tôi và được định cấu hình để định tuyến thông qua gốc proxy (với auth). Điều này hoạt động tốt với trình tải SDK/trình duyệt Android/IntelliJ, v.v., nhưng mạng giả lập không hoạt động.
Các nhầm lẫn chính là
tcp:(null)
Bất kỳ lời đề nghị?
Chúng tôi đang gặp sự cố tương tự. Nó dường như đã bắt đầu khi chúng tôi cập nhật lên Android SDK 12. – Daddyboy