Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 310
Tushar Anchliya Avatar asked May 09 '19 02:05

Tushar Anchliya


4 Answers

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

like image 148
Mali Avatar answered Nov 11 '22 04:11

Mali


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

like image 21
C.M Talha Avatar answered Nov 11 '22 06:11

C.M Talha


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.

like image 7
Harsha pulikollu Avatar answered Nov 11 '22 04:11

Harsha pulikollu


I would add that deleting the bin/caches folder seems to be the solution when your xcode build freezes on the launch screen. It seems to be related to upgrading Flutter and/or rolling back afterwards (my case).

like image 2
Lee Probert Avatar answered Nov 11 '22 05:11

Lee Probert