Я пытаюсь запустить приложение flutter на физическом устройстве, и я получаю следующий журнал ошибок. Я пытался воссоздать приложение, но журнал тот же. flutter doctor не сообщало о проблемах, а также последние версии стабильных версий.
Unhandled exception:
Crash when compiling packa
ge:xml/xml.dart,
at character offset null:
NoSuchMethodError: The getter 'isEof' was called on null.
Receiver: null
Tried calling: isEof
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1 scannerRecovery (package:_fe_analyzer_shared/src/scanner/recover.dart:29:17)
#2 _tokenizeAndRecover (package:_fe_analyzer_shared/src/scanner/scanner.dart:102:14)
#3 scan (package:_fe_analyzer_shared/src/scanner/scanner.dart:81:10)
#4 SourceLoader.tokenize (package:front_end/src/fasta/source/source_loader.dart:220:28)
<asynchronous suspension>
#5 SourceLoader.buildOutline (package:front_end/src/fasta/source/source_loader.dart:294:26)
<asynchronous suspension>
#6 Loader.buildOutlines (package:front_end/src/fasta/loader.dart:255:13)
<asynchronous suspension>
#7 KernelTarget.buildOutlines.<anonymous closure> (package:front_end/src/fasta/kernel/kernel_target.dart:257:20)
#8 withCrashReporting (package:front_end/src/fasta/crash.dart:122:24)
#9 Kernel
Target.buildOutlines (package:front_end/src/fasta/kernel/kernel_target.dart:255:12)
#10 generateKernelInternal.<anonymous closure> (package:front_end/src/kernel_generator_impl.dart:129:28)
<asynchronous suspension>
#11 withCrashReporting (package:front_end/src/fasta/crash.dart:122:24)
#12 generateKernelInternal (package:front_end/src/kernel_generator_impl.dart:70:10)
#13 kernelForProgramInternal.<a
nonymous closure> (package:front_end/src/api_prototype/kernel_generator.dart:61:35)
#14 CompilerContext.runWithOptions.<anonymous closure> (package:front
_end/src/fasta/compiler_context.dart:135:20)
<asynchronous suspension>
......
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 27s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 36.6s
Gradle task assembleDebug failed with exit code 1