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.
Author by
Tushar Anchliya
Updated on June 06, 2022Comments
-
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 errortried this and it added some dependencies
flutter packages pub global activate webdev
-
Maadhav Sharma over 3 yearsCan I know the reason why such error appears and how does it not come when using the global command?
-
MBK about 2 yearsalso stackoverflow.com/a/65577277/17837810 this helped me to fix a error after deleting the bin/caches.