Unable to connect to adb daeomon on port:5037
Asked Answered
C

8

10

enter image description hereI have just installed the android studio, But my "Hello world " App is not running in emulator, It's showing the Emulator error - Unable to connect to adb daemon on port 5037enter image description here

Cummerbund answered 11/11, 2019 at 9:48 Comment(0)
H
15

1.) You can restart adb manually from command prompt

  run->cmd->your_android_sdk_path->platform-tools>

Then write the below commands.

adb kill-server - To kill the server forcefully

adb start-server - To start the server

F:\android-sdk-windows latest\platform-tools>adb kill-server
F:\android-sdk-windows latest\platform-tools>adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
Hairworm answered 11/11, 2019 at 11:12 Comment(3)
but got this one error - The program can't start because api-ms-win-crt-heap-|1-1-0.dll is missing from your computer. Try reinstallling the program to fix this problem.Cummerbund
I have added new image of erroe, for fixing this I have added these files in system 32 and sysWOW64, but still am getting same errorCummerbund
thewindowsclub.com/api-ms-win-crt-runtime-l1-1-0-dll-is-missing Follow instruction on this link may solve your issueHairworm
F
4

Go to platform-tools folder in appdata where adb.exe file resides.

Execute the following command:

adb reconnect offline

it worked for me.

Filbert answered 7/7, 2020 at 2:55 Comment(0)
A
1

Sir , reinstall everything especially for Android Studio , reverse to older version if that's available , update to newest version if that's unavoidable

Aerophyte answered 2/3, 2020 at 4:46 Comment(0)
R
1

I had two Android Studios running (Stable and alpha). Closed both of them and then re-opened one, and was good again.

Robillard answered 13/9, 2023 at 14:46 Comment(0)
A
1

What worked for me was wiping the data of the emulator.

emulator -avd Your_Device_Name -wipe-data
Alphaalphabet answered 9/10, 2023 at 11:15 Comment(0)
P
0

just do 2 things into your terminal below:

adb kill-server

adb start-server

write above 2 lines into your terminal problem will resolve. thanks

Pyrimidine answered 25/3, 2022 at 8:51 Comment(0)
C
0

For me on time all adb commands were "stuck" and did not work at all. Not even adb kill-server did execute. It failed with the following error:

could not install *smartsocket* listener: Address already in use

* failed to start daemon
adb: failed to check server version: cannot connect to daemon

I noticed that I had several adb processes running in the background, all trying to listen to port :5037 of course, which was already busy. What helped for me was to kill the adb processes running in the background.

After killing all of them off everything worked fine and adb devices would discover my emulator again.

Come answered 24/5, 2024 at 11:43 Comment(0)
O
0

I've got simmilar problem but in my case I had to run adb attached to all network interfaces.

To do it, simply run the adb with -a flag like below

adb -a start-server
Overlap answered 13/8, 2024 at 15:10 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.