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 文件内路径是否正确,若正确 调用source .bash_profile 或者 source .zshrc
2.记得cd到flutter项目后,调用 flutter packages upgrade 及时更新路径
网友评论