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
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).
Run the following commands in the terminal inside the project directory
flutter clean
flutter pub get
I had the same error in Xcode.
pod update
solves the problem.
I run flutter clean
within the same terminal of my flutter project and that seems to work out
For me,
downgrading from 3.0.0
to 2.10.5
required pretty much all the solutions in this thread, and it worked.
Steps I followed,
rm -rf <path to flutter repo>/bin/cache
flutter doctor -v
flutter clean
flutter pub get
flutter pub cache repair
cd
in ios directory in the project and pod install
Steps 5 & 6 were probably wasn't necessary but I did it anyway. Step 6 is executed at flutter run
anyway.
For me it was necessary to delete "flutter/bin/cache/flutter_tools.stamp". https://github.com/flutter/flutter/issues/67222
What worked for me was:
Switch to the master channel using the command flutter channel master
. and then upgrade to the latest flutter version using the command flutter upgrade
.
© 2022 - 2024 — McMap. All rights reserved.