Reputation: 69
I already installed the Flutter and Dart Plugins in my Android Studio 4.1.0, but whenever I try to run flutter doctor
in the command prompt, it will have an error.
I tried uninstalling flutter and dart then installing them again but the same error.
The error occurs on Windows.
Upvotes: 4
Views: 203
Reputation: 69
I found the answer to this problem.
What I did is just switch the channel to dev
flutter channel dev
then
flutter upgrade
Upvotes: 0
Reputation: 1710
I find the reason behind it, why is flutter doctor
command giving the issue/error/warning?
Android studio 4.1 has changed the directory of installed plugins. you can find the new directory at
C:\Users\user_name\AppData\Roaming\Google\AndroidStudio4.1\plugins
The issue is already reported on Github and one of the contributor of flutter replied as
Failing to detect the plugins will not affect Flutter development at all. The Flutter CLI tool does not touch the plugins, only your editor does. Because of this, we plan to deprecate the plugin validators
Upvotes: 1
Reputation: 942
The same thing happens quite frequently to me because I'm switching flutter channels often.
Try flutter channel (master|beta|stable)
, flutter upgrade
, flutter doctor -v
and see if the issue persists. Anyway, it's not a real problem if everything works fine for your development work.
Upvotes: 3