Running "flutter pub get" in flutter_app...卡死

Packages get偶尔会遇到Running “flutter pub get” in flutter_app…卡死的问题。
解决办法
1.打开终端,输入:open .bash_profile
2.打开 .bash_profile ,修改下镜像
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
【Running "flutter pub get" in flutter_app...卡死】重启下编辑器,如果还是卡死的话,关掉编辑器,打开flutter安装目录,进入/bin/cache,找到lockfile文件,删除就可以了。
打开编辑器重新Packages get

    推荐阅读