Skip to content

Dart Error: Can't load Kernel binary: Invalid SDK hash. #179

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

Closed
lakshanthad opened this issue Jun 14, 2021 · 5 comments
Closed

Dart Error: Can't load Kernel binary: Invalid SDK hash. #179

lakshanthad opened this issue Jun 14, 2021 · 5 comments

Comments

@lakshanthad
Copy link

lakshanthad commented Jun 14, 2021

Hi,
I am having the following errors when trying to run "flutter-pi <app_name>"

[ERROR:engine/src/flutter/shell/common/shell.cc(103)] Dart Error: Can't load Kernel binary: Invalid SDK hash.
[ERROR:engine/src/flutter/runtime/dart_isolate.cc(171)] Could not prepare isolate.
[ERROR:engine/src/flutter/runtime/runtime_controller.cc(415)] Could not create root isolate.
[ERROR:engine/src/flutter/shell/common/shell.cc(588)] Could not launch engine with configuration.

I already "git pull" the latest commit from GitHub for the flutter-pi installation.

My host pc (windows) flutter config is as follows:

Flutter 2.2.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision d79295af24 (3 days ago) • 2021-06-11 08:56:01 -0700
Engine • revision 91c9fc8fe0
Tools • Dart 2.13.3

Help would be appreciated!

@lakshanthad
Copy link
Author

lakshanthad commented Jun 14, 2021

I just noticed that the engine-binaries for flutter-pi is in version 2.2.1, whereas the latest flutter SDK is in version 2.2.2. So I was able to get it working by downgrading the SDK to version 2.2.1.

So, could you update the engine binaries for v2.2.2, please?

Thank you

@ardera
Copy link
Owner

ardera commented Jun 14, 2021

thx for the notice, building them right now

@lakshanthad
Copy link
Author

Great! Thank you for your contribution to the community with flutter-pi!

@ardera
Copy link
Owner

ardera commented Jun 14, 2021

Great! Thank you for your contribution to the community with flutter-pi!

glad you appreciate it!

@ardera ardera closed this as completed Jun 14, 2021
@thomtomdup
Copy link

Hello.

I have the same issue. I think this is the same like before because now flutter SDK is in 2.10.1.
Can you update to the last engine binaries for 2.10.1 please ?
Thank you very much.
Regards

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

3 participants