Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
donotlazy opened this issue Jul 9, 2021 · 1 comment

Comments

@donotlazy
Copy link

@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.

@Bogon
Copy link

Bogon commented Jul 13, 2021

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

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

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants