【问题标题】:VSCode cannot run flutter app after upgrading Flutter to release 1.20.0 and VSCode Flutter plugin to 1.13.1将 Flutter 升级到 1.20.0 和 VSCode Flutter 插件升级到 1.13.1 后,VSCode 无法运行 Flutter 应用
【发布时间】:2020-11-25 20:13:57
【问题描述】:

使用 MacOS 和 VSCode。刚刚将 Flutter 升级到 1.20.0 版,现在我无法在 iPhone 模拟器的 VSCode 中以调试模式 (F5) 启动我的项目。

如果我在终端上执行

flutter run

一切都按预期进行。

flutter doctor -v 的输出:

[✓] Flutter (Channel stable, 1.20.0, on Mac OS X 10.15.6 19G73, locale es-ES)
    • Flutter version 1.20.0 at /Applications/flutter
    • Framework revision 840c9205b3 (12 hours ago), 2020-08-04 20:55:12 -0700
    • Engine revision c8e3b94853
    • Dart version 2.9.0

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/abibiano/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.8.4

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 43.0.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] VS Code (version 1.47.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.13.1

[✓] Connected device (1 available)
    • iPhone SE (2nd generation) (mobile) • C2027E6D-0C59-4B06-94BC-12382916EE09 • ios •
      com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)

• No issues found!

【问题讨论】:

    标签: flutter visual-studio-code flutter-plugin


    【解决方案1】:

    已经解决了。

    请更新 dart 的 vscode 插件。

    https://github.com/Dart-Code/Dart-Code/issues/2702

    【讨论】:

      猜你喜欢
      • 2021-08-13
      • 2022-01-17
      • 2019-05-12
      • 2020-10-05
      • 2021-11-28
      • 2021-10-03
      • 2022-08-11
      • 2021-10-17
      • 2022-07-16
      相关资源
      最近更新 更多