The Syntax Chronicles: Solution for Flutter Doctor and Android Studio detection on macOS

When Flutter finds neither Android Studio nor Java

Crafted Codes
Women in Technology

--

MidJourney generated image — Dieser Artikel ist auch auf Deutsch erhältlich

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 in iCloud 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:

  1. Open the terminal and edit the .zshrc file with nano

--

--