1

everytime i run flutter doctor i am facing this issue how can i get rid out of it plz hep. flutter error

Aditya prasad
  • 11
  • 1
  • 2

6 Answers6

3

Kindly first of all check your latest sdk first step: enter image description here

Second step: enter image description here

Third step: Run flutter doctor --android-licenses Press Y against each agreement

If you have done above steps then please follow the bellow process

Flutter provides a command to update the Android SDK path:

Use flutter config --android-sdk <path-to-your-android-sdk-path>

Normally the Android SDK path is C:\Users[your Local user folder]\AppData\Local\Android\Sdk

Jagadish
  • 1,005
  • 11
  • 30
2

For Me. The problem is the antivirus program. It denied access to starting the flutter daemon on port 5037. I disabled/exited the antivirus program. Then it works.

0

This generally occurs if the platform-tools are not installed properly. Reinstalling the platform tools might fix this problem. Open Android Studio, click SDK Manager in the toolbar or click Tools > SDK Manager, click SDK Tools, then uncheck Android-SDK Platform-Tools (as shown above). After this, open C:\Users\Username\AppData\Local\Android\Sdk and delete the platform-tools folder. Then go back to Android Studio and in the SDK Tools, check-mark ‘✓’ Android-SDK Platform-Tools.

mmmgreen
  • 1
  • 3
0

Had similar issue and I run flutter doctor --android-licenses, retried the flutter doctor, and error was gone.

0

Go to activity monitor (mac) or Task Manager (Window).
End all adb tasks and re-run.

Aashar Wahla
  • 2,785
  • 1
  • 13
  • 19
0

You have to just do this on windows

the adb daemon was unable to start (when trying adb devices). Doing the following via an Admin CMD worked: net stop winnat, then

net start winnat.

Then try again.

gtr Developer
  • 2,369
  • 16
  • 12