The command "flutter doctor" cannot locate Flutter and Dart plugins installed in Android Studio - android-studio

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.

Related

Flutter Install on Linux creating issues -Flutter Doctor

I have flutter and Android Studio installed via snap on my Ubuntu, dart and flutter plugins are also installed in android studio. Also that I tried changing directories for the android studio but did'nt work. SDK paths for both the flutter and dart are already added. Kindly help me with this. Flutter Doctor Results

Plugin Flutter not working, Android Studio

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

Flutter plugins already installed but displaying not installed

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.

Android Studio not showing Chrome as Flutter device

I got a small problem which accured after reinstalling Android Studio:
Android Studio
Android Studio is not showing Chrome as Device for my Flutter Web project, while flutter doctor shows clearly everything is enabled correctly:
Flutter doctor
I can normally run the flutter project on google chrome using the console or VS Code, but Android Studio does not work. I already checked the Flutter and Dart plugin.
I would be glad if someone who maybe had the same issue or knows how to fix this gets back to me!
Best Regards
Clearly it is not the issue with flutter. It is an issue with your Android Studio installation. You can verify the same by navigating to the your project folder in the terminal (or command prompt) and type
flutter run -d Chrome.
NOTE: The above command works only if you are on master, beta or dev branch and you have already enabled your flutter web support by typing
flutter config --enable-web
I noticed that your path to Android Studio as: C:\Program Files\Android\ Android Studio1
It means that during installation the original Android Studio folder is not deleted. A duplicate folder has been created in the same location. Hence the Android sdk location is must be changed as well.
You can solve this by:
Uninstall Android Studio. Delete the folder at the above location. Reinstall Android Studio. Update sdk path in your sdk manager as well as in your environment variable. (recommended).
Update the sdk folder in the sdk manager as well as your environment variables.

Flutter plugin not installed in IntelliJ version 2020.1

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

Resources