Stagehand 不支持 Dart 2.3.1 错误

Stagehand doesn't support Dart 2.3.1 error

我在 VS Code (win10) 中获得了“Dart 升级” 在我尝试创建一个新的 flutter web 项目之后 我得到了

Unable to execute Stagehand. Stagehand exited with code 65. stagehand 3.3.2 doesn't support Dart 2.3.1.

鉴于我之前没有遇到过这个问题, 我假设它是由更新引起的。

我运行“flutter升级”这是我的flutter医生

Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, v1.7.8+hotfix.4, on Microsoft Windows [Version 10.0.18362.295], locale en-US)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [√] Android Studio (version 3.4) [√] VS Code, 64-bit edition (version 1.38.0) [!] Connected device ! No devices available

! Doctor found issues in 1 category.

这是我的“flutter --version”

Flutter 1.7.8+hotfix.4 • channel stable • https://github.com/flutter/flutter.git Framework • revision 20e59316b8 (7 weeks ago) • 2019-07-18 20:04:33 -0700 Engine • revision fee001c93f Tools • Dart 2.4.0

知道如何解决吗?

运行

pub global activate stagehand

允许它再次工作。