Flutter doctor is showing me Errors in these categories. Although I have Flutter Dart plugins installed. I have also failed to understand the other problem. I am using Android Studio 3.2 and I need Help to fix this issue.
As #bayardcodeboy said
You just run flutter doctor -v
It will show a description of how to fix the problem.
For my problem, I run the command
flutter doctor -v
flutter config --android-studio-dir=F:\android_studio
Because I install it in drive F on my computer.
Hope this will help.
Related
After hitting pub get, we are getting this "Cannot find the flutter.plugin.platforms key in the pubspec.yaml" error, after reinstalling the android studio we are getting this error for the same project
Make sure you have installed flutter and dart plugin in android studio since you have reinstalled android studio you might have missed this step.
Sometimes few files might be corrupted you can try flutter clean and then flutter pub get to fix it.
If none of the steps helped please provide the flutter doctor -v output in the question.
I have installed the Flutter and Dart plugins in android studio but flutter doctor doesn't recognize it at all. Plus, I am running my flutter project and the emulator from VS code and it works perfectly. It even works from the android studio as well but the error messages doesn't seems to go away.
Error in Command Prompt after running Flutter Doctor(Image)
But after creating new project from command prompt everything seems to be fine as shown in the picture above but running the flutter doctor results the same problem again!
I have already uninstalled the plugins restarted the android studio and again installed the plugins and restarted the android studio.
Already done this process a number of times.
All the path have been defined in the Environment Variable of the system variables.
Already tried running this command flutter config --android-sdk PATH_TO_ANDROID_SDK in my terminal.
These error occurred after updating Android Studio to 4.1 v from 3.5 v
I can't seem to find any solution as this error is haunting me.
Thank you in advance.
i had the same problem check: https://github.com/flutter/flutter-intellij/issues/4523
If you are on Mac:
ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1
For windows and/or Linux you can try Flutter Dev channel:
flutter channel beta
flutter upgrade
my advice for you is to uninstall the Android Studio completely, then downgrade the version. I had the same error, it started working after downgrading to Android Studio 4.0.2
I installed flutter and android studio following the steps in the flutter official page. I did it a month ago and then I used flutter doctor and I did not get any problems back then.
Now I tried again but I keep getting those errors
I have Android Studio installed (version 4.1)
If you are not installing android studio into the recommended location. Then you need to link it back for Flutter doctor to find it.
I install android studio to my home dir "/home/{$USER}/android-studio"
The quick and dirty way is cd into your "/opt" folder then symlink it
$ cd /opt
$ sudo ln -s /home/me/android-studio android-studio
Then run flutter doctor (or with a -v to see more detail) you should able to see it finds it.
First of all, run the command as said flutter doctor --android-licenses.
It will show you the licenses and you just have to type Y in the command line to accept them.
Secondly,it seems can't find Android Studio. If you have that, I suggest you to uninstall and re-install it clearly. Of course you should also install the Flutter plugin in Android Studio.
When everything is done just use flutter doctor. The last warning "Connected device" is going to be visible until you don't use an emulator or connect via USB debugging your phone.
With regards to Flutter not being able to find Android Studio: I had the same issue since upgrading to Android Studio 4.1 a couple of days ago. Since I use VS Code it didn't bother me too much. However yesterday I received an update notification from Flutter and after the update the problem went away.
I'm trying to use flutter on Android Studio. I have the flutter plugin installed on Android Studio and when i try to create a new flutter project it behaves normally, in the sense of it lets me write the project name, the flutter sdk path and so on. But when i click on finish absolutely nothing happens. I just see the Android Studio Welcome page where i can create new Projects. So i figured I'd see what flutter doctor -v has to say about it and it gives me these errors:
So i try to find a solution by typing : flutter doctor --android-licenses but i get another error:
And yes i have set the PATH variable and i have installed Android SDK Tools.
I tried everything but nothing seems to do the job.
Any help would be appreciated.
if you are using windows OS, backup your data, reinstall windows..remember to choose option to keep your files and application..after finish..check updates and update windows..
then run flutter doctor --android-licenses
I’m keen to try flutter on my MacBook running MacOS 10.13.3. I’ve been reading with interest this seemingly excellent step-by-step guide:
https://medium.com/#sethladd/installing-flutter-on-a-mac-13a26340f80a
It all goes well until I get to the point where I need to run:
flutter doctor --android-licenses
but for me I get…
Graham-Macbook12-2015:my_first_app graham.hobson$ flutter doctor --android-licenses
sdkmanager --version failed: 1
I have redownloaded Java but that doesn’t fix it. Some articles here suggest that it might be something do with my path and the SDK not being on it, but I can’t see the problem. Does anyone have any other suggestions?
Where can I download an older version of the Android SDK?
View the answer by Maverick09
Hope this helps!
NOTE: I don't have a Mac