Riddhipratim Adhikari
Riddhipratim Adhikari

Reputation: 63

How to fix (the doctor check crashed) flutter issue with IntelliJ IDEA?

I'm encountering the issue where the doctor check crashes with IntelliJ IDEA when running flutter doctor. How can I resolve this issue?

[☠] IntelliJ IDEA Ultimate Edition (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about
      this issue at https://github.com/flutter/flutter/issues.
    ✗ FormatException: Unexpected extension byte (at offset 5)

flutter doctor

Upvotes: 0

Views: 1942

Answers (2)

Daniel Schreurs
Daniel Schreurs

Reputation: 371

I had the same problem. In my specific case I simply:

  1. Downgraded to version 2021.2.4
  2. Cleared the download cash.
  3. Restarted my machine
  4. At this point, Flutter Doctor was no longer returning an error. (But I was in the old version of IntelliJ IDEA).
  5. Then I reinstalled the new version 2021.3.
  6. Cleared the download cash.
  7. Updated all plugins, invalidate caches and restart.
  8. Upgrade Flutter to 2.8.1.
  9. Restarted my machine.

Now I have no more errors.

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.1 21C52 darwin-arm, locale fr-BE)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.3)
[✓] VS Code (version 1.63.2)
[✓] Connected device (2 available)

! Doctor found issues in 1 category.

Upvotes: 1

Diwyansh
Diwyansh

Reputation: 3514

There are few step to follow that may help you

  1. Close the editor

  2. Go to console

  3. Set the path of your Editor to flutter directory by using this command

    flutter config --android-studio-dir="Path of your code editor"

make sure that you have double quotes around the path.

Upvotes: 0

Related Questions