Skip to content

Can't load Kernel binary: Invalid kernel binary format version. #67222

Closed

Description

@mrmayurgithub

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.

Activity

  1. jonahwilliams commented on Oct 3, 2020

    @jonahwilliams
    Contributor

    To work around @mrmayurgithub try rm FLUTTER_ROOT/bin/cache/flutter_tools.stamp

  2. added
    c: fatal crashCrashes that terminate the process
    toolAffects the "flutter" command-line tool. See also t: labels.
    c: crashStack traces logged to the console
    P2Important issues not at the top of the work list
    and removed
    c: fatal crashCrashes that terminate the process
    on Oct 3, 2020
  3. mrmayurgithub commented on Oct 3, 2020

    @mrmayurgithub
    Author

    To work around @mrmayurgithub try rm FLUTTER_ROOT/bin/cache/flutter_tools.stamp

    I tried deleting flutter_tools.stamp manually, but still nothing's happening.

  4. jonahwilliams commented on Oct 3, 2020

    @jonahwilliams
    Contributor

    FLUTTER_ROOT is not an actual folder, just where the root of your flutter installation is

  5. mrmayurgithub commented on Oct 3, 2020

    @mrmayurgithub
    Author

    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.

  6. khoatd92 commented on Nov 3, 2020

    @khoatd92

    Any update? Got similar issue

  7. khoatd92 commented on Nov 3, 2020

    @khoatd92

    @mrmayurgithub did you fix this?

  8. khoatd92 commented on Nov 3, 2020

    @khoatd92

    @jonahwilliams can you help to take a look pls?

  9. mrmayurgithub commented on Nov 5, 2020

    @mrmayurgithub
    Author

    @jonahwilliams can you help to take a look pls?

    I tried completely replacing the flutter file downloaded from flutter's website, and it worked.

  10. hassanasif0423 commented on Dec 12, 2020

    @hassanasif0423

    @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.

  11. Mizumaki commented on Dec 15, 2020

    @Mizumaki

    @hassanasif0423 For me, this advice is enough.

    try rm FLUTTER_ROOT/bin/cache/flutter_tools.stamp

    In my case,

    which flutter
    => /Users/{UserName}/Applications/flutter/bin/flutter
    
    rm /Users/{UserName}/Applications/flutter/bin/cache/flutter_tools.stamp
    
  12. yvesloy commented on Feb 11, 2021

    @yvesloy

    I have the same issue too.

  13. mrmayurgithub commented on Feb 11, 2021

    @mrmayurgithub
    Author

    I have the same issue too.

    I solved this issue by downloading the flutter sdk from the flutter website and replacing with the one in pc.

  14. yvesloy commented on Feb 11, 2021

    @yvesloy

    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.

  15. Tuigirl commented on May 22, 2021

    @Tuigirl

    To work around @mrmayurgithub try rm FLUTTER_ROOT/bin/cache/flutter_tools.stamp

    worked

  16. ameenbadri7 commented on Jun 2, 2021

    @ameenbadri7

    deleting the flutter_tools.stamp works.

    thanks

  17. hoanganhtran1010 commented on Jun 16, 2021

    @hoanganhtran1010

    I have the same issue because installing 2 flutter versions in the same computer. Fixed by remove one.

  18. github-actions commented on Jul 31, 2021

    @github-actions

    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.

  19. locked as resolved and limited conversation to collaborators on Jul 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: crashStack traces logged to the consoletoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions