重现步骤
我按照 "Get Started" 指南中的说明安装了 Flutter。我尝试了两种安装方法:一种是使用 VS Code 安装,另一种是从 zip 文件中简单下载和安装。在这两种安装方法中,我都遇到了以下错误:
[☠] Windows Version (the doctor check crashed)
X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
X Exception: Windows Version exceeded maximum allowed duration of 0:04:30.000000
此外,尽管以下输出来自 VS Code,但它也无法确定 VS Code 的版本...
[√] VS Code, 32-bit edition (version unknown)
• VS Code at C:\Program Files (x86)\Microsoft VS Code
• Flutter extension can be installed from:
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
X Unable to determine VS Code version.
我的 Windows 版本
Edition Windows 10 Pro
Version 22H2
Installed on 8/26/2020
OS build 19045.4651
Experience Windows Feature Experience Pack 1000.19060.1000.0
实际结果
运行 flutter doctor
后,我希望一切都能顺利进行,但它找不到我的 Windows 版本。
- 在提升权限的命令提示符中尝试过
- 在 PowerShell 中尝试过
- 在 VS Code 中尝试过
日志
日志
<!-- Paste your logs here -->
Flutter Doctor 输出
Doctor 输出(这是从 VS Code 安装过程中得到的,所以我还没有将 flutter
和 dart
添加到我的路径中,但这并没有什么区别)
C:\apps> flutter doctor -v
[√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.19045.4651], locale en-US)
• Flutter version 3.22.2 on channel stable at C:\dev\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 761747bfc5 (5 weeks ago), 2024-06-05 22:15:13 +0200
• Engine revision edd8546116
• Dart version 3.4.3
• DevTools version 2.34.3
[☠] Windows Version (the doctor check crashed)
X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know
about this issue at https://github.com/flutter/flutter/issues.
X Exception: Windows Version exceeded maximum allowed duration of 0:04:30.000000
•
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
• Android SDK at C:\dev\Android\sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.27)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
• Visual Studio Build Tools 2019 version 16.11.33801.447
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2022.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
[√] VS Code, 32-bit edition (version unknown)
• VS Code at C:\Program Files (x86)\Microsoft VS Code
• Flutter extension can be installed from:
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
X Unable to determine VS Code version.
[√] VS Code, 64-bit edition (version 1.92.0-insider)
• VS Code at C:\Program Files\Microsoft VS Code Insiders
• Flutter extension version 3.92.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.4651]
• Chrome (web) • chrome • web-javascript • Google Chrome 126.0.6478.127
• Edge (web) • edge • web-javascript • Microsoft Edge 126.0.2592.102
[√] Network resources
• All expected network resources are available.
1条答案
按热度按时间fquxozlt1#
感谢您的报告 @mcnedward
Windows 版本(医生检查崩溃)
X 由于一个错误,医生检查没有完成。如果下面的错误信息没有帮助,请告知我们关于这个问题 https://github.com/flutter/flutter/issues 。
X 异常:Windows 版本超过了允许的最大持续时间 0:04:30.000000。
看起来相似/类似于 #125488
无法确定 VS Code 版本。
检查 #139027 是否有帮助。