I'm setting up an application development environment with Flutter. I'm having trouble installing Android Studio: I can't set the directory where Android Studio is installed. I've got an error, as shown in the picture. How do I find the correct directory?
-
You can set path for android studio like this : flutter config --android-studio-dir="C:\Program Files\Android\Android Studio" and reopen terminal and check again – Hardik Mehta Sep 07 '22 at 10:00
2 Answers
You default Android Studio directory should be C:\Program Files\Android\Android Studio
.
If you are searching for the Android SDK location, check out here.
The warning/error you are getting on flutter doctor
is telling you that he cannot find Android Studio in the path C:\Program
, this means you will need to set it manually. To do it, run the following command(s) with the correct path.
flutter config --android-studio-dir "[YOURPATH]"
flutter config --android-sdk "[YOURPATH]"
This should be the expected output of the flutter doctor
Remember to use those " "
to indicate the path of Android Studio, otherwise you'll have this output, that is not what we want: Setting "android-studio-dir" value to "C:\Program".

- 1,257
- 1
- 13
- 22
-
Many thanks for your assistance. it works ! After I've been trying all day :) – ariJourney Sep 07 '22 at 10:27
flutter config --android-studio-dir = C:\Program Files\Android\Android Studio
Which unfortunately does not work because of empty space which breaks the tree structure
To resolve this, type the command below which will reset the default.
flutter config --android-studio-dir=""

- 4,355
- 2
- 35
- 45