Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android-studio-dir = C:\Program X Android Studio not found at C:\Program FLUTTER PROBLEM

I am taking this erros with flutter doctor.I wrote 2 code to CMD and I broke my android studio dir.How can ı repair it ? Which 2 code I should write to CMD ?enter image description here

like image 921
Şeyh Faik Avatar asked Oct 15 '20 18:10

Şeyh Faik


People also ask

Why is flutter Android Studio not installed?

To solve this Android Studio (not installed) You just need to flutter the config to set the android studio path.

How do I find directory in Android Studio?

If you want to check your configurations for SDK, dir etc, just type flutter config and it will show you all configurations.

Where is flutter SDK located?

Your Flutter SDK path should be a_better_place/flutter. These would be used in tools such as VSCode or Android Studio. Check your echo $PATH to point to the correct folder. Use export PATH=”$PATH:$HOME/flutter/bin” or whatever you need (and you can also include this into your ~/.

How do I restart open editors for them to read new settings?

try invalidate cache and restart on the Menu -> File -> invalidate cache and restart. Some times you may have problem in your environment setup.


Video Answer


1 Answers

I think you have tried installing the latest version of Android Studio (4.0.1) and version (1.22.1 or lower) of Flutter. But Android Studio (4.0.1) moved the location of the .home file on Windows which is used to located the install directory.

You tried to fix the problem using the command:

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=""

and upgrade Flutter to version (1.22.2) to resolve Android Studio localization issue

like image 166
chris-profico Avatar answered Oct 14 '22 20:10

chris-profico