美文网首页
flutterSDK路径更改后

flutterSDK路径更改后

作者: 改个Id | 来源:发表于2020-05-26 16:48 被阅读0次

    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 及时更新路径

    相关文章

      网友评论

          本文标题:flutterSDK路径更改后

          本文链接:https://www.haomeiwen.com/subject/bpsvahtx.html