windows - 为什么 Flutter 在 Windows 上不再被识别以及如何修复它?
问题描述
在过去的 4 周里,我一直在 Windows 上学习颤振开发,直到突然我的 Visual Studio 通知我它在我的 PC 上找不到颤振包。
我检查了控制台,令人惊讶的是,命令“flutter”不再被识别,不仅在 cmd.exe 中,甚至在 flutter_console.bat 中。路径变量仍然很好,颤动的位置没有改变。
有什么想法会发生什么以及如何解决?
解决方案
*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 doctor
并flutter upgrade
推荐阅读
- python - 使用python获取嵌套json中键值的通用方法
- python - 获取熊猫数据框中每个唯一元素的第一个和最后一个日期
- python - 为什么使用 LRU 缓存的图形 DFS 比字典查找更快。LeetCode 128 解法区别
- android - Detect App是通过广告的安装链接
- python - 检查熊猫数据框中的列是否有趋势
- html - 背景图像未显示在引导卡中
- android - 假设这个世界上的所有 Android 设备都使用“\n”作为行分隔符是否可以?
- javascript - 为每个创建的元素创建一个新的 onclick 函数
- yum - download.postgresql.org 的证书已过期
- node.js - 错误:听 EADDRNOTAVAIL 13.*.*.*:3004