解決方案
一
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
二
進(jìn)入安裝的flutter文件的目錄下面,進(jìn)入/bin/cache,找到lockfile文件,然后刪除就可以了
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
進(jìn)入安裝的flutter文件的目錄下面,進(jìn)入/bin/cache,找到lockfile文件,然后刪除就可以了