How to fix Issues in Flutter Doctor – Flutter Crash Course 2022

Flutter, Flutter Crash Course

What is Flutter Doctor and how to run it?

Flutter doctor is a command line tool. We can use flutter doctor to check weather our flutter and dart configurations are upto mark or there is some issue in them.

To run a flutter doctor we can simply open our command prompt by typing cmd in the windows search. In the command prompt write the following command and hit enter.

C:\Users\Dell> flutter doctor

How to fix Flutter doctor android studio plugin(Dart , Flutter) issue?

If you are facing Flutter Plugin not found or maybe both flutter and dart plugin not found error and you have already installed Dart & Flutter plugin in Android Studio. But the flutter doctor gives the plug-in is not installed issue. Then in that case you have to follow the below mentioned steps.

[√] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.16299.19], locale en-US)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[!] 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.
[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

Solution

To solve the issue flutter plugin not installed or flutter plugin cannot be found by flutter doctor. First you have to make sure that you have already installed the plugins as mentioned here or watch the video. If still flutter and dart plugins are not found then run the followings commands…

flutter upgrade
flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"
flutter doctor -v
Then if the issue still persists then just shift to the beta channel and the upgrade flutter then it will fix it.
flutter channel stable
flutter upgrade

Android Licenses Not Accepted

To use Flutter properly, you should get a supported IDE (with official Dart & Flutter SDK plugins), so either Android Studio or Visual Studio Code. Install one of these and install the two mentioned plugins for them. Then, as flutter doctor says, run flutter doctor --android-licenses, because you probably didn’t agree to them yet and you have to do that before you start developing with Flutter SDK.

To solve the follwing issue follow the steps in the solution section below.

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.7, on Mac OS X 10.14.6 18G103, locale en-IN)
 
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

Solution

To solve the issue – android license not accepted run the command below.

C:\Users\Dell>flutter doctor --android-licenses

CODING with T

🚀 Supercharge your Flutter skills! Subscribe to my YouTube channel now for mind-blowing coding insights, expert tips, and exclusive content. Don’t miss out!

23 - Product Detail Screen, How to create Products Details Screen in Flutter. Flutter eCommerce app UI Design

Source code

COURSES

Flutter E Commerce App Modern and latest
Flutter Login App UI Source Code - Flutter Complete App - Flutter App Design - Flutter App 2023 - Complete Flutter App 2023
Learn flutter from scratch in 4 hours - Flutter Crash Course - Coding with T

Learn Flutter

1.2 # How to install flutter on android studio 2022 - Flutter Basic Crash Course
2.2 - Add Image in Flutter - Assets Network- Flutter Basic Crash Course 2022

flutter Design

How to create a Custom Shape in Flutter. Flutter E Commerce app Design. Ecommerce app design Flutter. Flutter clippath tutorial
How to create a Custom Appbar in flutter. Custom Appbar Design. Flutter App Design
16 - Product Card and Grid Layout, How to create a Grid View in Flutter. How to add Products in GridView Layout. Flutter eCommerce app UI Design
Bottom Navigation bar in Flutter. Flutter Material 3 bottom navigation bar. How to design background color of Flutter bottom navigation bar. Flutter ecommerce app design
23 - Product Detail Screen, How to create Products Details Screen in Flutter. Flutter eCommerce app UI Design

Flutter Backend

33 - How to Setup Firebase - Firebase Basics - Flutter Firebase - Flutter ecommerce app with firebase as backend
38 - How to Sign-in with Google in flutter Firebase, Firebase Basics, Flutter Firebase, Flutter ecommerce app with firebase as backend
40 - Flutter Firebase CRUD,  Firebase Basics, Flutter Firebase, Flutter ecommerce app with firebase as backend
Access Admin Panel, Premium Tutorials, Live Chat, 50% off Codes, and More on Patreon!
This is default text for notification bar