一、下载慢

git clone -b stable https://github.com/flutter/flutter.git 比较缓慢解决方案如下
请配置环境变量,以Linux为例: 打开
/etc/profile或~/.bashrc,添加环境变量 export FLUTTER_STORAGE_BASE_URL=https://mirrors.sjtug.sjtu.edu.cn export PUB_HOSTED_URL=https://dart-pub.mirrors.sjtug.sjtu.edu.cn

二、Building flutter tool...慢

flutter doctorBuilding flutter tool...缓慢
添加如下环境变量 #export FLUTTER_STORAGE_BASE_URL
=https://mirrors.sjtug.sjtu.edu.cn #export PUB_HOSTED_URL=https://dart-pub.mirrors.sjtug.sjtu.edu.cn export PUB_HOSTED_URL=https://pub.flutter-io.cn export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

 

相关文章:

  • 2021-08-06
  • 2022-12-23
  • 2021-10-08
  • 2021-07-02
  • 2021-06-16
  • 2021-07-02
  • 2022-12-23
猜你喜欢
  • 2021-11-12
  • 2021-05-14
  • 2021-11-08
  • 2021-05-07
  • 2021-12-24
相关资源
相似解决方案