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
To solve this Android Studio (not installed) You just need to flutter the config to set the android studio path.
If you want to check your configurations for SDK, dir etc, just type flutter config and it will show you all configurations.
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 ~/.
try invalidate cache and restart on the Menu -> File -> invalidate cache and restart. Some times you may have problem in your environment setup.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With