Windows构建Flutter环境 HTTP Host Availability
Windows构建Flutter环境 HTTP Host Availability
参考文件地址:https://docs.flutter.dev/community/china
图片: HTTP Host Availability异常
修改文件:D:\flutter\packages\flutter_tools\lib\src\http_host_validator.dart
修改内容方便大家复制:
const String kPubDevHttpHost = ‘https://pub.flutter-io.cn/’;
const String kgCloudHttpHost = ‘https://storage.flutter-io.cn/’;
/// Android specific required HTTP hosts.
const List androidRequiredHttpHosts = [‘https://dl.google.com/dl/android/maven2/’,];