Warning! This package referenced a Flutter repository via the .packages file
that is no longer available. The repository from which the 'flutter' tool is
currently executing will be used instead.
? running Flutter tool: /Users/……/FlutterSDK/flutter
? previous reference? : /Users/……/BBB/FlutterSDK/flutter
This can happen if you deleted or moved your copy of the Flutter repository, or
if it was on a volume that is no longer mounted or has been mounted at a
different location. Please check your system path to verify that you are running
the expected version (run 'flutter --version' to see which flutter is on your
path).
1.首先先檢查 ~/.bash_profile 或者 ~/.zshrc 文件內(nèi)路徑是否正確熄赡,若正確 調(diào)用source .bash_profile 或者? source .zshrc
2.記得cd到flutter項目后,調(diào)用 flutter packages upgrade 及時更新路徑