【问题标题】:flutter build or hot reload not working in vs code颤振构建或热重载在 vs 代码中不起作用
【发布时间】: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”并接受所有许可。

标签: flutter dart


【解决方案1】:

在终端中运行以下命令

flutter doctor --android-licenses

当被问到时通过 y 表示是

【讨论】:

    猜你喜欢
    • 2020-05-26
    • 2021-04-06
    • 2020-09-11
    • 2019-11-29
    • 2018-09-26
    • 2020-02-10
    • 2018-08-19
    • 2018-12-02
    • 2021-12-18
    相关资源
    最近更新 更多