Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't load Kernel binary: Invalid SDK hash in Flutter

Whenever I try to run a dart tool like Dart Migrate I get the following error and I am unable to run that tool. Is there a way to solve this problem or I have to reinstall Flutter? enter image description here

Btw every thing is okay with Flutter Doctor

enter image description here

like image 985
Junaid Hassan Final Avatar asked Apr 19 '26 19:04

Junaid Hassan Final


2 Answers

After a lot of effort and wasting a lot of time on this issue I have been able to solve this problem. I have installed dart-sdk separately in the past and place the path of that dart-sdk at the top (before flutter one) in environment variables PATH. So I deleted that old dart-sdk path and deleted the respective folder this solved my problem.

like image 195
Junaid Hassan Final Avatar answered Apr 22 '26 12:04

Junaid Hassan Final


dart pub global activate rps (or some other package)

After each update it invalids these packages.

like image 20
Oliver Dixon Avatar answered Apr 22 '26 14:04

Oliver Dixon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!