web-dev-qa-db-ja.com

Flutter:エラー:ゲッターが見つかりません: 'suspending'。ケースAppLifecycleState.suspending

(ローカルiOSシミュレーターで)アプリを起動しようとしたときに、Stable ChannelでFlutterをアップグレードし、次のStackTraceを取得しました。 flutter testを使用した単体テストの実行も影響を受けます。

Launching lib/main.Dart on iPhone 8 in debug mode...

Compiler message:
../../flutter/.pub-cache/hosted/pub.dartlang.org/native_device_orientation-0.1.2/lib/native_device_orientation.Dart:149:30: Error: Getter not found: 'suspending'.
      case AppLifecycleState.suspending:
                             ^^^^^^^^^^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
Failed to build bundle.
Error launching application on iPhone 8.

フラッタードクター-v

[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.14.6 18G1012, locale de-DE)
    • Flutter version 1.12.13+hotfix.5
    • Framework revision 27321ebbad (33 hours ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0


[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0-rc2)
    • Android SDK at ...Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform Android-29, build-tools 29.0.0-rc2
    • Java binary at: .../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.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3, Build version 11C29
    • CocoaPods version 1.6.0

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

[✓] Connected device (1 available)
    • iPhone 8 • ios • com.Apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)

• No issues found!

誰かが解決策を手に入れましたか?

9
Max

同じ問題があります。 qr_mobile_visionをバージョン0.3.1にアップデートして問題を解決したようです。

0
LiveRock