Flutter卡在Running "flutter packages get"

环境搭建好,新建的项目卡在Running "flutter packages get",flutter的包在https://storage.googleapis.com上面,原因你懂的,还好官方有解决方案,传送门

解决方法:

export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

你可能感兴趣的:(Flutter卡在Running "flutter packages get")