The Syntax Chronicles: Solution for Flutter Doctor and Android Studio detection on macOS
When Flutter finds neither Android Studio nor Java
Even long-standing Flutter installations on macOS can sometimes suddenly become buggy, especially if Flutter Doctor suddenly stops recognising Android Studio (as happened to me recently). This guide offers you a solution to solve exactly these problems.
Identification of the problem
Our diagnosis shows that Flutter Doctor has difficulties identifying the installed version of Android Studio and the corresponding Java version. This can occur in particular with parallel installations, such as the preview version of Android Studio.
It may be that, as in my case,
Android Studio Preview.app
can be iniCloud Drive (Archiv)/Desktop/
. Then move the file to the Applications folder.
Adaptation of the environment variables
The solution requires an adjustment of the environment variables in the .zshrc
file:
- Open the terminal and edit the
.zshrc
file withnano
…