A GlobalKey was used multiple times inside one widget's child list.
出师未捷身先死:
Installing ../../flutter/myapp/build/app/outputs/apk/app.apk...
E/flutter ( 3378): [ERROR:flutter/shell/common/shell.cc(178)] Dart Error: Unhandled exception:
E/flutter ( 3378): 'dart:ui/window.dart': Failed assertion: line 306: '<optimized out>': is not true.
E/flutter ( 3378): #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:40:39)
E/flutter ( 3378): #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter ( 3378): #2 new Locale.fromSubtags (dart:ui/window.dart:306:15)
E/flutter ( 3378): #3 _updateLocales (dart:ui/hooks.dart:89:43)
Syncing files to device Android SDK built for x86...
I/flutter ( 3378): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter ( 3378): The following NoSuchMethodError was thrown building ScrollConfiguration(behavior:
I/flutter ( 3378): _MaterialScrollBehavior):
I/flutter ( 3378): The getter 'languageCode' was called on null.
I/flutter ( 3378): Receiver: null
I/flutter ( 3378): Tried calling: languageCode
初始化项目,启动时报这个错误,不知道有没有遇到的,如何解决?