0

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 doctor command issue

Flutter and Dart Plugins installed in Android Studio

Flutter and Dart Plugins Installed

I have no idea why flutter doctor cannot detect the plugins installed for Android Studio.

1 Answers1

1

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

    enter image description here

  • run the command flutter config --android-sdk PATH_TO_ANDROID_SDK in your terminal.

Once done, restart your machine and run flutter doctor.

Yudhishthir Singh
  • 2,941
  • 2
  • 23
  • 42