everytime i run flutter doctor i am facing this issue how can i get rid out of it plz hep. flutter error
Go to activity monitor (mac) or Task Manager (Window).
End all adb tasks and re-run.
Kindly first of all check your latest sdk first step:
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
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.
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.
Had similar issue and I run flutter doctor --android-licenses, retried the flutter doctor, and error was gone.
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.
Happend to me on osx, somehow just starting Android studio and checking the 'device manager' solved the problem.
© 2022 - 2025 — McMap. All rights reserved.