adb cannot connect to daemon

question:

* daemon not running. starting it now on port 5037 *

error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: XXX(10048)

could not read ok from ADB Server

* failed to start daemon *

error: cannot connect to daemon

 

reason:

Basically because port 5037 is occupied

 

solve:

Generally, you can exit any mobile phone assistant.

 

The following applies to Windows

Check the occupied port process in detail

> netstat -aon|findstr 5037

  TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       1860

  TCP    127.0.0.1:5037         127.0.0.1:50247        ESTABLISHED     1860

  TCP    127.0.0.1:5037         127.0.0.1:50248        ESTABLISHED     1860

 

View a detailed description of the process

> tasklist /fi "PID eq 1860"

 

image name PID session name session# memory usage

========================= ======== ================ =========== ============

adb.exe                       1860 Console                    1      7,696 K

 

Force quit process

> taskkill /pid 1860 /f

/f means force

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327034157&siteId=291194637