zgz345

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

一、下载慢

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

 

posted on 2020-10-15 09:47  zonyZhang  阅读(2688)  评论(1编辑  收藏  举报