gpt4 book ai didi

windows - 无法在 MS VS 代码上运行 flutter 命令

转载 作者:行者123 更新时间:2023-12-05 03:29:39 30 4
gpt4 key购买 nike

我在 VS 上创建了一个 flutter 项目,但无法通过 VS 代码的终端运行任何命令,我已经重新安装了 VS 代码,但仍然出现此错误:

[X] Visual Studio - develop for WindowsX Visual Studio not installed; this is necessary for Windows development.Download at https://visualstudio.microsoft.com/downloads/.Please install the "Desktop development with C++" workload, including all of its default components

我重新安装了,不知道为什么一直没有安装!

知道怎么解决吗?

谢谢

最佳答案

来自您的图片;你正在使用 Visual Studio Code , 不是 Visual Studio .

Flutter 2.10 稳定支持构建 Windows 应用程序,for more .

因此,在运行 flutter doctor 时,您会看到此错误。如果您计划构建 Windows 应用程序,则需要安装 Visual Studio 使用 C++ 进行桌面开发。您需要下载并安装Visual studio如果你想消除这个错误。

您可以阅读有关为窗口构建的更多信息 here .

关于windows - 无法在 MS VS 代码上运行 flutter 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70997410/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com