flutter 国内镜像

flutter 国内镜像_第1张图片

《小巷》

——顾城

小巷
又弯又长
没有门
没有窗
我拿把旧钥匙
敲着厚厚的墙

码农福利

flutter 是开发APP的利器, 但需要调用谷歌的资源,速度很慢
我们需要把原地址更换为镜像地址(例如., https://storage.flutter-io.cn) ,一切就搞定了

  • Original URL: https://storage.googleapis.com/flutter_infra/releases/beta/windows/flutter_windows_v0.3.2-beta.zip
  • Mirrored URL: https://storage.flutter-io.cn/flutter_infra/releases/beta/windows/flutter_windows_v0.3.2-beta.zip

export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
git clone -b dev https://github.com/flutter/flutter.git
export PATH="$PWD/flutter/bin:$PATH"
cd ./flutter
flutter doctor

上海交通大学镜像:

  • FLUTTER_STORAGE_BASE_URL: https://mirrors.sjtug.sjtu.edu.cn/
  • PUB_HOSTED_URL: https://dart-pub.mirrors.sjtug.sjtu.edu.cn/

你可能感兴趣的:(flutter 国内镜像)