Skip to content

Instantly share code, notes, and snippets.

@fahied
Created August 30, 2014 09:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fahied/4b6621f4cee24c5c59ad to your computer and use it in GitHub Desktop.
Save fahied/4b6621f4cee24c5c59ad to your computer and use it in GitHub Desktop.
SOLVED: adb not responding. you can wait more or kill adb process manually and click 'restart'
ISSUE:
When try to run/debug programm in Android Studio
adb not responding. you can wait more or kill adb process manually and click 'restart'
Reason:
The adb server cannot start if the port 5037 was occupied by other process. So we need to find which one occupied it and kill the process to release this port.
Solving Steps:
1. find out the PID (process id) of the process which occupied the port 5037
D:\Android\sdk\platform-tools>netstat -aon|findstr 5037
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 6776
TCP 127.0.0.1:5037 127.0.0.1:50506 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:50507 TIME_WAIT 0
Now the 6776 is the PID. Go to Task Manager, find it and kill it.
2. Run Android Studio
aplication run successfully
@niranjan7
Copy link

ADB not responding. If you'd like to retry, then please manually kill "adb.exe" and click 'Restart' for windows 7

@abacoin
Copy link

abacoin commented Nov 14, 2016

My Frind, a work for many many hours tto find the solution, and NOW thanks to YOU, is SOLVED !!!!!
Best !

@K3beros
Copy link

K3beros commented Jun 23, 2017

My android studio is currently running on that port. If i kill it then i can't even try to run the app.

@ChenhuaWANG22
Copy link

This works great! Thank you.
PS: add some details for Win10 Resource Manager,:

  1. if UID column is not shown, right click any column to add it.
  2. if process with target UID is not found, have a look at "Details" Tab.

image

@iverenshaguy
Copy link

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment