我试图创建和运行一个颤振桌面应用程序在VisualStudio2019,我已经下载了所需的文件(MSBuild和MSVC),但仍有错误。我有2013年版本,卸载它,安装2019年版本,所有更新
当我运行颤振运行命令时,就会发生这种情况。
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)
任何解决办法!
发布于 2020-02-21 14:32:16
如果收到该错误消息,则根据Visual,该列表中至少缺少一个必需的组件。最可能的问题是,您没有安装上面列出的Windows10SDK的确切版本,在最新版本中默认不包括该版本。
(编辑:在最初编写此答案时,上面提到的SDK要求是准确的,但不适用于当前版本的颤振。)
发布于 2020-04-03 04:29:08
在我的例子中,默认情况下,安装了Windows10SDK (10.0.18362.0),但是Flutter需要Windows10SDK (10.0.17763.0)。
只需得到组件的确切版本,如下所示。
发布于 2022-02-18 06:38:49
用C++安装桌面开发
https://stackoverflow.com/questions/60334570
复制相似问题