flutter 3.16 的迁移问题。意外的内核版本 89(预计为 111)

问题描述 投票:0回答:1

我目前正在android studio 中从事flutter 项目。将 flutter 版本更新到 3.16 后,我在构建应用程序时遇到问题。 我试过:

1.降级flutter版本(并再次升级)。 2.升级依赖。 3.删除.idea目录 4.运行扑干净 5.创建新项目并复制代码文件 6.升级IDE(现在是giraffe)

完成所有这些步骤后控制台输出为:

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.
flutter dart android-studio migration
1个回答
0
投票

这里有同样的问题。我使用 Pixel 6 API34 。

© www.soinside.com 2019 - 2024. All rights reserved.