1、变量设置
PUB_HOSTED_URL=https://mirrors.cloud.tencent.com/dart-pub
FLUTTER_STORAGE_BASE_URL=https://mirrors.cloud.tencent.com/flutter
2、Flutter 执行flutter doctor报错HTTP Host Availability
决方法:
1.找到flutter sdk的文件目录,,打开flutter\packages\flutter_tools\lib\src\http_host_validator.dart
2.将https://maven.google.com/修改为https://dl.google.com/dl/android/maven2/,保存退出
3.在flutter\bin目录,删除cache文件夹
4.重新运行终端执行flutter doctor,自动下载文件,解决问题
3、Android sdk/commond line Install