无法找到合适的Visual Studio工具链。请运行`flutter doctor`了解更多详细信息

问题描述 投票:0回答:1

我正在尝试在Visual Studio 2019中创建并运行Flutter桌面应用程序,我已经下载了所需的文件(MSBuild和MSVC),但仍然出现错误。我安装了2013 versio,然后将其卸载并安装了2019版,并且所有这些都已更新

这在我运行flutter运行命令时发生

Launching lib\main.dart on Windows in debug mode...
Unable to find suitable Visual Studio toolchain. Please run `flutter doctor` for more details.

当我跑动时,医生给了我这个错误

[!] Visual Studio - develop for Windows (Visual Studio Community 2019 16.4.5)
    X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop
      development with C++" workload, and include these components:
        MSBuild
        MSVC v142 - VS 2019 C++ x64/x86 build tools
         - If there are multiple build tool versions available, install the latest
        Windows 10 SDK (10.0.17763.0)

任何解决方案!

visual-studio flutter-desktop
1个回答
0
投票

如果收到该错误消息,则根据Visual Studio,您将丢失该列表中的至少一个必需组件。最可能的问题是您没有安装此处列出的Windows 10 SDK的确切版本,最新版本默认不包括该版本。

© www.soinside.com 2019 - 2024. All rights reserved.