【问题标题】:Why did flutter stop being recognized on Windows and how to fix it?为什么 Flutter 在 Windows 上不再被识别以及如何修复它?
【发布时间】:2019-08-19 19:17:31
【问题描述】:

在过去的 4 周里,我一直在 Windows 上学习 Flutter 开发,直到突然我的 Visual Studio 通知我它在我的 PC 上找不到 Flutter 包。

我检查了控制台,令人惊讶的是命令“flutter”不再被识别,不仅在 cmd.exe 中,甚至在 flutter_console.bat 中。路径变量仍然很好,颤动的位置没有改变。

flutter_console.bat

有什么想法会发生什么以及如何解决?

【问题讨论】:

    标签: windows flutter path console


    【解决方案1】:
    *From the Start search bar, enter ‘env’ and select Edit environment variables for your account.
    Under User variables check if there is an entry called Path:
        If the entry exists, append the full path to flutter\bin using ; as a separator from existing values.
        If the entry doesn’t exist, create a new user variable named Path with the full path to flutter\bin as its value.
    

    请注意,您必须关闭并重新打开任何现有的控制台窗口才能使这些更改生效* 然后运行flutter doctorflutter upgrade

    【讨论】:

      猜你喜欢
      • 2013-05-12
      • 2018-07-12
      • 2022-11-20
      • 1970-01-01
      相关资源
      最近更新 更多