如何在flutter doctor中修复HTTP主机可用性:
[!] HTTP Host Availability
X HTTP host "https://cocoapods.org/" is not reachable. Reason: An error occurred while checking the HTTP host:
Connection terminated during handshake
X HTTP host "https://maven.google.com/" is not reachable. Reason: An error occurred while checking the HTTP host:
Connection terminated during handshake
X HTTP host "https://pub.dev/" is not reachable. Reason: An error occurred while checking the HTTP host: Connection
terminated during handshake
X HTTP host "https://cloud.google.com/" is not reachable. Reason: An error occurred while checking the HTTP host:
Connection terminated during handshake
! Doctor found issues in 1 category.
对不起我不知道
1条答案
按热度按时间vvppvyoh1#
它基本上是一个检查连接到资源,你需要Flutter开发。你需要检查你的连接,如果它是一个问题,在运行Flutter医生。
通过深入挖掘,我们还可以在flutter代码中找到用于http主机验证的实际文件:https://github.com/flutter/flutter/blob/eb1a851f5843efb6cecab020467a2ffea48fd1d3/packages/flutter_tools/lib/src/http_host_validator.dart