问题
This is problem, I have already installed flutter and dart plugin but its showing I haven't , I freshly installed both android studio and flutter as I just started it
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable`enter code here`, on Microsoft Windows)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[!] Android Studio (version 4.1.0)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code (version 1.52.1)
[√] Connected device (1 available)
! Doctor found issues in 1 category.
回答1:
This is a known and recurring issue with Flutter cli and the 'moving target' that is AS4.1 and other IDE file locations. See: https://github.com/flutter/flutter/issues/61246 (and the links it contains).
It can be safely ignored if your plugins in AS4.1 are working fine.
回答2:
You just need to add the Flutter and Dart plug-ins to your Android Studio. Simply open the Android Studio program, select File > Settings > Plugins (or Android Studio > Preferences > Plugins on a Mac). Type in The word flutter to bring up the flutter.dev plug-in and click to install it. Installing Flutter will automatically install Dart. Rerun flutter doctor again, and assuming your $PATH is configured correctly, it will show that the plug-ins are detected.
回答3:
I'm having the same problem for the last two months. It happened after the new Flutter update. I tried every solution: whether changing Channel to dev to updating SDKs. I have been ignoring it and everything works perfectly .
回答4:
Check if Android Studio is added to your Path
in environment variables
回答5:
Check whether your flutter sample project is running or not ,if it is running finely then it will not create problem. I am saying this because i happend with me also but it didn't affected any projects i have created.
来源:https://stackoverflow.com/questions/65547613/flutter-doctor-flutter-and-dart-plugins-not-installed