Reputation: 63
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)
Upvotes: 0
Views: 1942
Reputation: 371
I had the same problem. In my specific case I simply:
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
Reputation: 3514
There are few step
to follow that may help you
Close the editor
Go to console
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