Flutter Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable
Asked Answered
B

7

9

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

Babylonia answered 12/12, 2020 at 7:31 Comment(2)
Please reinstall the Flitter and Android SDK and try agin!Rolanderolando
This worked for me, and is very easy to do: https://mcmap.net/q/346866/-ddms-39-adb-exe-start-server-39-failed-run-manually-if-necessary-android-studioActon
J
13

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

Joiejoin answered 22/6, 2023 at 6:52 Comment(1)
Made my day, thank you so muchManipular
I
7

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

Inexpensive answered 12/12, 2020 at 7:54 Comment(2)
Hope this helps you...if not please inform in commentsInexpensive
plus, you might need to disable proxy in AVD settings pasteboard.co/GN5HGJSmAlzr.pngScrivener
M
3

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.

Mopup answered 13/5, 2022 at 21:49 Comment(0)
E
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.

Eanes answered 24/5, 2022 at 13:53 Comment(0)
P
0

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

Pessary answered 19/2, 2023 at 19:8 Comment(0)
M
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.

Marasmus answered 12/8, 2023 at 10:28 Comment(0)
M
0

Happend to me on osx, somehow just starting Android studio and checking the 'device manager' solved the problem.

Moncada answered 21/8, 2024 at 13:59 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.