提问人:Stachowe 提问时间:11/17/2023 最后编辑:Stachowe 更新时间:11/17/2023 访问量:50
flutter 3.16 的迁移问题。意外的内核版本 89(预期为 111)
Migration problem with flutter 3.16. Unexpected kernel version 89 (expected 111)
问:
我目前正在 android studio 中开发一个 flutter 项目。将 flutter 版本更新到 3.16 后,我在构建应用程序时遇到了问题。 我试过:
1.降级 flutter 版本(并再次升级)。 2.升级依赖。 3.删除 .idea 目录 4.运行颤振清洁 5.创建新项目和应对代码文件 6.升级IDE(现在的长颈鹿)
完成所有这些步骤后的控制台输出为:
Launching lib\main.dart on sdk gphone x86 64 in debug mode...
Unhandled exception:
Unexpected Kernel Format Version 89 (expected 111)
#0 BinaryBuilder.readComponent.<anonymous closure> (package:kernel/binary/ast_from_binary.dart:692:9)
#1 Timeline.timeSync (dart:developer/timeline.dart:173:22)
#2 BinaryBuilder.readComponent (package:kernel/binary/ast_from_binary.dart:679:21)
#3 _InitializationFromSdkSummary._prepareSummary (package:front_end/src/fasta/incremental_compiler.dart:2467:12)
#4 _InitializationFromUri.initialize (package:front_end/src/fasta/incremental_compiler.dart:2541:23)
<asynchronous suspension>
#5 IncrementalCompiler._ensurePlatformAndInitialize (package:front_end/src/fasta/incremental_compiler.dart:1421:25)
<asynchronous suspension>
#6 IncrementalCompiler.computeDelta.<anonymous closure> (package:front_end/src/fasta/incremental_compiler.dart:308:11)
<asynchronous suspension>
#7 CompilerContext.clear (package:front_end/src/fasta/compiler_context.dart:139:3)
<asynchronous suspension>
#8 IncrementalCompiler.compile (package:vm/incremental_compiler.dart:75:50)
<asynchronous suspension>
#9 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:610:11)
<asynchronous suspension>
#10 listenAndCompile.<anonymous closure> (package:frontend_server/frontend_server.dart:1323:11)
<asynchronous suspension>
Running Gradle task 'assembleDebug'...
the Dart compiler exited unexpectedly.
the Dart compiler exited unexpectedly.
答: 暂无答案
评论