Visual studio code 颤振与代码问题
为什么运行Visual studio code 颤振与代码问题,visual-studio-code,flutter,Visual Studio Code,Flutter,为什么运行flatter doctor后会出现这些VS代码错误: 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 h
flatter doctor
后会出现这些VS代码错误:
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
这可能有几个原因,但最可能的原因是您安装了VS代码,但没有安装颤振扩展 我得到同样的结果:
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.
运行flatter doctor-v
了解更多详细信息,因为它会在错误消息中告诉您:
[√] Flutter (Channel dev, v0.5.4, on Microsoft Windows [Version 10.0.17134.112], locale en-GB)
• Flutter version 0.5.4 at C:\VirtualDrives\Programs\flutter
• Framework revision 3019ad976d (11 days ago), 2018-06-11 11:31:25 -0700
• Engine revision d33bbff470
• Dart version 2.0.0-dev.60.0.flutter-a5e41681e5
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at C:\VirtualDrives\Programs\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = C:\VirtualDrives\Programs\Android\sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.
[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 25.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[√] IntelliJ IDEA Community Edition (version 2017.2)
• IntelliJ at C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2017.1
• Flutter plugin version 19.1
• Dart plugin version 172.4343.25
[√] IntelliJ IDEA Community Edition (version 2018.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.1
• Flutter plugin version 25.0.2
• Dart plugin version 181.4892.1
[!] VS Code, 32-bit edition
• VS Code at C:\Program Files (x86)\Microsoft VS Code
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[!] VS Code, 64-bit edition (version 1.22.2)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[!] Connected devices
! No devices available
! Doctor found issues in 3 categories.
由于区分大小写错误,颤振的当前释放无法正确检测VSC扩展。如果它出现在VSCode中,则表示它已安装。忽略颤振医生。:)