After configuring the development environment, first check the ADB port occupancy, the default ADB and Eclipse communication port is 5037, generally installed 360 or Sogou program will be connected to the phone when the port occupied, need to be modified
Troubleshoot adb port usage
Mode A
5037 is the default port for ADB, if 5037 ports are occupied,
view the process that occupies the port PID
C:\users\wwx229495>netstat-aon |findstr 5037
TCP 127.0.0.1:5037 0.0.0.0:0 listening 3676
View all processes via PID
C:\users\wwx229495>tasklist/fi PID eq 3676 "
Image name PID session name & nbsp Session # Memory use
========================= ======== ================ = = ========= ============
Svchost.exe 3676 Services 0 13,800 K
Kill processes that occupy ports
C:\Users\wwx22949 5>taskkill/pid 3676/f
Succeeded: The process of PID 3676 has been terminated.
Mode Two
configures the ADB server port itself, using an uncommon value.
As simple as defining the value of Android_adb_server_port in the system environment variable.
It is best to choose a 5-digit port number (10000 ~ 65535), which is not easy to repeat.
As long as you add a android_adb_server_port to the environment variable, the value fills in your own defined port.
Linux as long as export $ANDROID _adb_server_port = Custom port, you can.
Citation: http://blog.csdn.net/wangyanan829/article/details/37593839
ADB port occupancy issues when Android configuration environment