You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't load Kernel binary: Invalid kernel binary format version. #67222
Can't load Kernel binary: Invalid kernel binary format version.
I recently upgraded Flutter to version 1.22.0, but I got some errors related to a dart package that I used, so I tried to downgrade flutter by using command flutter downgrade, but that wasn't successful. There were 10 tries, but all failed. Now I get Can't load Kernel binary: Invalid kernel binary format version. this error every time I use any Flutter command....
flutter pub get
flutter upgrade
flutter
flutter clean
flutter downgrade
Every time it just shows Can't load Kernel binary: Invalid kernel binary format version.
FLUTTER_ROOT is not an actual folder, just where the root of your flutter installation is
I tried deleting flutter_tools.stamp manually from flutter/bin/cache/, but still nothing's happening.
This happens again and again -> Error (1): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (7 tries left)
Initializing Flutter. This may take a few minutes. Its just stuck on this.
@mrmayurgithub Hi Sir,
I will face this error in running the app Can't load Kernel binary: Invalid kernel binary format version.
if anyone resolved this issue kindly help me.
I fixed it now - the issue was that I had installed flutter before and flutter took parts of the old version to initialize.
To solve it, I had to delete the old one.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
jonahwilliams commentedon Oct 3, 2020
To work around @mrmayurgithub try
rm FLUTTER_ROOT/bin/cache/flutter_tools.stampmrmayurgithub commentedon Oct 3, 2020
I tried deleting flutter_tools.stamp manually, but still nothing's happening.
jonahwilliams commentedon Oct 3, 2020
FLUTTER_ROOTis not an actual folder, just where the root of your flutter installation ismrmayurgithub commentedon Oct 3, 2020
I tried deleting flutter_tools.stamp manually from flutter/bin/cache/, but still nothing's happening.
This happens again and again ->
Error (1): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (7 tries left)
Initializing Flutter. This may take a few minutes. Its just stuck on this.
khoatd92 commentedon Nov 3, 2020
Any update? Got similar issue
khoatd92 commentedon Nov 3, 2020
@mrmayurgithub did you fix this?
khoatd92 commentedon Nov 3, 2020
@jonahwilliams can you help to take a look pls?
mrmayurgithub commentedon Nov 5, 2020
I tried completely replacing the flutter file downloaded from flutter's website, and it worked.
hassanasif0423 commentedon Dec 12, 2020
@mrmayurgithub Hi Sir,
I will face this error in running the app Can't load Kernel binary: Invalid kernel binary format version.
if anyone resolved this issue kindly help me.
Mizumaki commentedon Dec 15, 2020
@hassanasif0423 For me, this advice is enough.
In my case,
bubnenkoff commentedon Feb 2, 2021
Same issue after install https://pub.dev/packages/dhttpd
yvesloy commentedon Feb 11, 2021
I have the same issue too.
mrmayurgithub commentedon Feb 11, 2021
I solved this issue by downloading the flutter sdk from the flutter website and replacing with the one in pc.
yvesloy commentedon Feb 11, 2021
I fixed it now - the issue was that I had installed flutter before and flutter took parts of the old version to initialize.
To solve it, I had to delete the old one.
Tuigirl commentedon May 22, 2021
worked
ameenbadri7 commentedon Jun 2, 2021
deleting the flutter_tools.stamp works.
thanks
hoanganhtran1010 commentedon Jun 16, 2021
I have the same issue because installing 2 flutter versions in the same computer. Fixed by remove one.
github-actions commentedon Jul 31, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.