Can't load Kernel binary: Invalid kernel binary format version. No active package webdev

18,135

Solution 1

Delete the bin/cache directory in your Flutter installation directory, then run flutter doctor.

Solution 2

Open Flutter SDK folder, go to bin/cache and delete all the files + folders then run flutter doctor, and then flutter upgrade.

Solution 3

instead of webdev serve try to use flutter packages pub global run webdev serve and for getting and upgrading packages you can use flutter packages get and flutter packages upgrade respectively.

Solution 4

I had the same error in Xcode. pod update solves the problem.

Share:
18,135
Tushar Anchliya
Author by

Tushar Anchliya

Updated on June 06, 2022

Comments

  • Tushar Anchliya
    Tushar Anchliya almost 2 years

    After running webdev serve it gives "Can't load Kernel binary: Invalid kernel binary format version. No active package webdev." this error

    tried this and it added some dependencies

    flutter packages pub global activate webdev
    
  • Maadhav Sharma
    Maadhav Sharma over 3 years
    Can I know the reason why such error appears and how does it not come when using the global command?
  • MBK
    MBK about 2 years
    also stackoverflow.com/a/65577277/17837810 this helped me to fix a error after deleting the bin/caches.