为什么在运行flutter doctor
之后出现这些VS Code错误:
Waiting for another flutter command to release the startup lock...
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.17134.112], locale hu-HU)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.0)
[√] Android Studio (version 3.1)
[!] VS Code, 32-bit edition
[!] VS Code, 64-bit edition (version 1.24.1)
[!] Connected devices
! No devices available
! Doctor found issues in 3 categories.
exit code 0
答案 0 :(得分:2)
由于大小写敏感性错误,当前版本的颤振无法正确检测VSC扩展。如果它显示在VSCode中,则表明已安装。忽略Flutter Doctor。 :)
答案 1 :(得分:1)
可能有多种原因,但是最可能的原因是您安装了VS Code,但没有安装Flutter扩展。
我也一样:
-beta4
运行Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel dev, v0.5.4, on Microsoft Windows [Version 10.0.17134.112], locale en-GB)
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[√] Android Studio (version 3.1)
[√] IntelliJ IDEA Community Edition (version 2017.2)
[√] IntelliJ IDEA Community Edition (version 2018.1)
[!] VS Code, 32-bit edition
[!] VS Code, 64-bit edition (version 1.22.2)
[!] Connected devices
! No devices available
! Doctor found issues in 3 categories.
以获得更多详细信息,因为它在错误消息中告诉您:
flutter doctor -v