国内配置:
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
如果提示”https://maven.google.com/ “无法访问:
Step1 flutter\packages\flutter_tools\lib\src\http_host_validator.dart
将https://maven.google.com/ 修改为:
https://dl.google.com/dl/android/maven2/
Step2 删除“flutter\bin\cache”文件夹
Step3 再次运行flutter doctor
chrome配置:
export CHROME_EXECUTABLE=/snap/bin/chromium