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

3,910

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.

Share:
3,910
Junaid Hassan Final
Author by

Junaid Hassan Final

Updated on December 29, 2022

Comments

  • Junaid Hassan Final
    Junaid Hassan Final over 1 year

    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