【发布时间】:2021-12-12 18:19:15
【问题描述】:
这是错误:
在调试模式下在 Windows 上启动 lib\main.dart... lib\main.dart:1 异常:无法找到合适的 Visual Studio 工具链。请运行
flutter doctor了解更多详情。退出 (sigterm)
当我运行颤振医生时,它会告诉我这个
[√] Flutter (Channel stable, 2.5.3, on Microsoft Windows
[Version 10.0.22483.1011], locale en-IN)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
! Some Android licenses not accepted. To resolve this, run:
flutter doctor --android-licenses
[√] Chrome - develop for the web
[X] Visual Studio - develop for Windows X 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
[√] Android Studio (version 4.2)
[√] IntelliJ IDEA Community Edition (version 2020.3)
[√] VS Code (version 1.61.2)
[√] Connected device (4 available)
根据颤振医生的说法,颤振vs代码完全没问题 请任何人帮忙。
【问题讨论】:
-
运行“flutter doctor --android-licenses”并接受所有许可。