Flutter - stuck in Running "flutter pub get" in xxx, solutions

######  Environment Configuration Mac end Flutter look at this one is enough
######  installation configuration Flutter on Mac

######  Mac OS environment configuration in detail Flutter
######  Flutter entry (mac environment variable configuration)

Before the tripartite project download package is no problem, these two days have been hold off, eventually replacing the packet address and solve this problem, make a record

//命令行输入
vim ~/.bash_profile

//添加下面三行,保存
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export PATH=/Users/计算机名称/flutter/bin:$PATH  //下载的flutterSDK的路径

//命令行输入
source ~/.bash_profile

flutter -h

Published 149 original articles · won praise 23 · views 370 000 +

Guess you like

Origin blog.csdn.net/iotjin/article/details/104816598