Flutter下載或Building flutter tool...慢問題解決方案


一、下載慢

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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM