everytime i run flutter doctor i am facing this issue how can i get rid out of it plz hep. flutter error
6 Answers
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

- 1,005
- 11
- 30
-
-
plus, you might need to disable proxy in AVD settings https://pasteboard.co/GN5HGJSmAlzr.png – Hardik May 29 '23 at 16:41
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.

- 21
- 1
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.

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

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

- 2,785
- 1
- 13
- 19
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.

- 2,369
- 16
- 12