fun_android_flutter icon indicating copy to clipboard operation
fun_android_flutter copied to clipboard

Dart Error: Can't load Kernel binary: Invalid kernel binary format version.

Open donotlazy opened this issue 3 years ago • 1 comments

@bogon ~ % flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.2.3, on Mac OS X 10.15.7 19H524 darwin-x64, locale zh-Hans-CN) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.2) [✓] IntelliJ IDEA Ultimate Edition (version 2020.3) [✓] VS Code (version 1.58.0) [✓] Connected device (2 available)

run error info:

Launching lib/main.dart on iPhone 6s plus in debug mode... Automatically signing iOS for device deployment using specified development team in Xcode project: DxxxxW8 Running pod install... Running Xcode build... Xcode build done. 18.1s Installing and launching... (lldb) 2021-07-09 16:17:06.619134+0800 Runner[492:56899] [VERBOSE-2:shell.cc(93)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version. [VERBOSE-2:dart_isolate.cc(170)] Could not prepare isolate. [VERBOSE-2:runtime_controller.cc(382)] Could not create root isolate. [VERBOSE-2:shell.cc(576)] Could not launch engine with configuration.

donotlazy avatar Jul 09 '21 08:07 donotlazy

首先可以肯定的是项目运行是没问题的。

截屏2021-07-13 下午1 54 01

按照下面步骤: 1、将源代码下载下来之后,使用Android Studio 打开项目,完成项目的初始化配置; 2、初始化完成之后,打开Android、iOS模拟器(随便一个都可以); 3、选择打开的模拟器,运行项目。

真机运行需要开发者账户并且项目bundleID需要在开发者账户中注册完成;之后的配置就是一般iOS项目配置,即可进行真机运行。

你可以再多试试,失败的原因多半是配置不正确,多检查项目配置。

Bogon avatar Jul 13 '21 06:07 Bogon