After installing flutter, when I run
I think I have messed up my Mac regarding Android Studio when I run
Flutter doctor reports it says Android Studio not found like below
Android Studio not found at /Applications/Contents
Flutter doctor -v
What should I do?
Please run flutter config --android-studio-dir=/Applications/Android\ Studio.app
As #Akshay says run flutter config --android-studio-dir=/Application/Android\ Studio.app. I got the same problem when i ran the config command this way: flutter config --android-studio-dir=/Application/
I believe that when you install Android Studio with JetBrains toolbox, the pwd is different, mine was at "Applications/JetBrains\ Toolbox/Android\ Studio.app/Contents"
So, to solve it:
flutter config --android-studio-dir=/Users/<$YOUR_USER>/Applications/JetBrains\ Toolbox/Android\ Studio.app/Contents
Related
Flutter is not running on my Android Studio correct, the emulator does not open the Standart beginning App. I believe it is because of some internal mixed up. I reinstalled everything without success. Right now when I run flutter doctor this is shown:
flutter doctor
Can I put the plugins manually in some Folder? Because opening Android Studio and just downloading the plugin does not change anything. Although I can now create flutter Projects and come as far as writing the code but not seeing the app.
Any Response is helpfull!
Your flutter doctor clearly shows that the correct plugins(Dart and Flutter) are not installed. To install the plugins just follow the steps:
File->Settings->Plugins-> Type/ To see options. Here search for flutter.
Install the plugin and restart the Android Studio.
If you face any kind of problem after restarting try doing the following:
File-> Invalidate Caches/ Restart
Based on the Flutter doctor output, your android studio is missing Flutter and Dart Plugins. to install them,
Open Android Studio and open settings and go to plugins and search for Flutter. install it and the Dart plugin. then restart the android studio
I am trying to install Flutter in Android Studio. I have installed flutter and dart plugins in Android Studio and I have also downloaded the flutter sdk and set the path.
But when I am running Flutter Doctor in the terminal it displays:
Flutter plugins not installed
Dart plugins not installed
Following is the image of the error:
I also tried uninstalling the flutter and dart plugins and re install them, but still getting the same error.
Can someone help me with this please?
If you are using android studio 4.1, then it's likely bug of the Android Studio or the flutter itself (you can read this github issue) as the plugins path may be changed in android studio 4.1.
For a temporary solution, you can use flutter dev channel that contains a fix for the issue.
flutter channel dev
flutter upgrade
And try to run flutter doctor again.
flutter doctor
If you do nothing, it's okay as long as you have installed the plugin. You can create project and working on it as usual (see this issue).
It's a bug in either android studio or flutter.
You can ignore it because everything still works as usual.
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 ?
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
Type this into the plugin:
flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"
Uninstall Android Studio and re-install it. After that install the Flutter and Dart plugins as mentioned here.
Install the Flutter and Dart plugins
To install these:
Start Android Studio.
Open plugin preferences (Configure > Plugins as of v3.6.3.0 or later).
Select the Flutter plugin and click Install.
Click Yes when prompted to install the Dart plugin.
Click Restart when prompted.
To fix this error, open cmd and enter the codes below in order:
flutter channel dev
flutter channel updrade
flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"
This may fix your Studio and Flutter paths.
I was stuck with the same problem and whatever I did wouldn't solve the issue.
My advise to you would be
Run on separate command prompt window and not in Visual studio code integrated cmd terminal.
Remove flutter bin path from PATH environment variable and run the flutter command again from a cmd window with entire path. This solved my issue. After this step, I included flutter bin path into environment variable again.
try doing:
flutter config --android-studio-dir "C:\Program Files\Android\Android Studio"
As said by other developers running this command
flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"
that issue got resolved for me. I am running Microsoft windows 10.
When i am running flutter doctor command then I'm getting the error "flutter and dart plugin not installed". But in my plugin section these two plugins are installed. I am attaching screenshot for the both.
It looks like you are trying to run flutter using IntelliJ, with Android studio already being there on your machine. It happened with me that when I tried running flutter from IntelliJ with the plugins installed, it gave me the same error and it was resolved by installing those plugins in Android Studio.
Try installing the plugins in Android Studio. Then run it again.
Go to preferences and click plugin then update flutter and dart
I am new to the Flutter development environment. I downloaded the flutter and dart sdk and have added their path to the environment variable in the ~/.bashrc file. I am using Android studio for developing Flutter apps. I installed the Flutter and Dart plugins in Android Studio but when I am running the command flutter doctor it gives the following error:
Flutter and Dart Plugins installed in Android Studio
I have no idea why flutter doctor cannot detect the plugins installed for Android Studio.
Try to restart android studio after the installation of plugins, then run flutter doctor.
If it doesn't help, maybe the path of your android sdk is not set properly.
Get path of android sdk by going to Android Studio > Preferences and then find for sdk as shown in the picture. It should look like /Users/yourName/Library/Android/sdk
run the command flutter config --android-sdk PATH_TO_ANDROID_SDK in your terminal.
Once done, restart your machine and run flutter doctor.