美文网首页Flutter
Flutter 问题解决

Flutter 问题解决

作者: 会飞的猪X | 来源:发表于2019-07-25 15:38 被阅读0次

    最近在学习 flutter ,出现了一个问题:

    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/xiezong/Desktop/flutter

      previous reference  : /Users/xiezong/Desktop/第三方功能/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).

    报错原因: 把flutter sdk 文件夹挪动了位置

    解决方案:

    1、修改flutter sdk路径

    修改sdk路径

    2、修改环境变量路径

    修改环境变量路径 修改环境变量路径 修改环境变量路径 修改环境变量路径

    路径在 .packages 里面修改

    基本操作就是这样,记录一下。

    相关文章

      网友评论

        本文标题:Flutter 问题解决

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