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
Delete the bin/cache
directory in your Flutter installation directory, then run flutter doctor
.
Open Flutter SDK folder, go to bin/cache and delete all the files + folders then run flutter doctor, and then flutter upgrade.
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.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With