当我尝试在 Windows 上运行 flutter 应用程序时收到此消息,
Building Windows application...
CMake Error at CMakeLists.txt:2 (project):
Generator
Visual Studio 16 2019
could not find any instance of Visual Studio.
i have installed Visual Studio 2022 with many tools like in the image below
and this what I got from Flutter Doctor:
E:\mp\my_class>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, 2.8.0-3.2.pre, on Microsoft Windows [Version 10.0.22000.318], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.2)
[√] Android Studio (version 2020.3)
[√] IntelliJ IDEA Ultimate Edition (version 2021.2)
[√] VS Code (version 1.62.3)
[√] Connected device (3 available)
• No issues found!
仅 2.9 或更高版本支持 Visual Studio 2022(在撰写本文时仅在master
渠道)。事实是doctor
没有任何迹象表明 2022 年行不通a bug.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)