Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to start adb server? [duplicate]

hi im getting the error:

Unable to create Debug Bridge: Unable to start adb server: error: could not install smartsocket listener: cannot bind to 127.0.0.1:5037: An attempt was made to access a socket in a way forbidden by its access permissions. (10013) This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. could not read ok from ADB Server * failed to start daemon * error: cannot connect to daemon 'C:\Users\user\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server' failed -- run manually if necessary

How can I fix this issue? i have tried to uninstall the sdk platform tool and reinstall but that does not seem to work, any suggestions?

like image 705
Ashraf Rahman Avatar asked Mar 22 '17 19:03

Ashraf Rahman


2 Answers

use:

adb start-server

also (to shutdown the server):

adb kill-server

(adb must be in the PATH)

like image 170
Matias Elorriaga Avatar answered Sep 20 '22 13:09

Matias Elorriaga


I had the same issue, found the solution here: stackoverflow - Android - could not install smartsocket listener

In summary, for windows: Open command prompt and enter following command

netstat -ano | findstr :5037

example output - final column is process id (PID)

TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 832

in this example, 832 is PID

Now run command

tasklist | findstr _PID_ (e.g tasklist | findstr 832)

It will show process/service name like bash.exe (for me it was MBAM.exe)

go to task manager and end the task bash.exe and use following command to start adb

adb start-server
like image 33
Morte Descovich Avatar answered Sep 22 '22 13:09

Morte Descovich