Compiler Failed
flutter_bloc: ^6.0.0
Compiler message:
../../flutter/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%2547dart-pub/provider-4.3.1/lib/src/provider.dart:545:15: Error: The getter 'debugDoingBuild' isn't defined for the class 'BuildContext'.
- 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'debugDoingBuild'.
(!debugDoingBuild && !debugIsInInheritedProviderUpdate),
^^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%2547dart-pub/provider-4.3.1/lib/src/provider.dart:582:13: Error: The getter 'debugDoingBuild' isn't defined for the class 'BuildContext'.
- 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'debugDoingBuild'.
debugDoingBuild ||
^^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%2547dart-pub/provider-4.3.1/lib/src/inherited_provider.dart:215:39: Error: The getter 'debugDoingBuild' isn't defined for the class 'BuildContext'.
- 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'debugDoingBuild'.
assert(widget is LayoutBuilder || debugDoingBuild, '''
^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
Failed to build bundle.
Error launching application on iPhone 11.
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[ā] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.2 19C57, locale en-CN)
[ā] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[ā] Xcode - develop for iOS and macOS (Xcode 11.5)
[ā] Android Studio (version 3.5)
[ā] Android Studio (version 3.6)
[!] Android Studio (version 4.0)
ā Flutter plugin not installed; this adds Flutter specific functionality.
ā Dart plugin not installed; this adds Dart specific functionality.
[!] IntelliJ IDEA Ultimate Edition (version 2018.1.7)
ā Flutter plugin not installed; this adds Flutter specific functionality.
ā Dart plugin not installed; this adds Dart specific functionality.
[ā] Connected device (4 available)
! Doctor found issues in 2 categories.
dart --version
Dart VM version: 2.7.0 (Mon Dec 2 20:10:59 2019 +0100) on "macos_x64"
How can i solve this problem ? Thx
Hi @kaina404 š
Thanks for opening an issue!
Looks like the exception is thrown within provider and Iām guessing you just need to do a flutter upgrade to use the latest stable (provider needs flutter: '>= 1.16.0' for the latest version).
Let me know if that helps š
@felangel Thank you very much. According to your , I solved the problem. o( ̄ā½ļæ£)ļ½
Most helpful comment
@felangel Thank you very much. According to your , I solved the problem. o( ̄ā½ļæ£)ļ½