The Android development environment was built yesterday afternoon, but bad weather-the implementation of the new Android project always shows examples such as the following questions:
[2014-10-30 15:41:47-] The connection to ADB are down, and a severe error has occured. [2014-10-30 15:41:47-] You must restart ADB and Eclipse. [2014-10-30 15:41:47-] Please ensure this adb is correctly located at ' <--here shows the full path of adb.exe--' and can be executed.
Efforts to most of the day is finally to solve the problem, now summed up:
1. Close Eclipse. Open Windows Task Manager. See if there are adb.exe or adb.exe *32 processes in the process;
2. If the Windows Task Manager has a adb.exe or adb.exe *32 process, the process is closed. Starting eclipse again is possible;
3. Assume that there is no adb.exe or adb.exe *32 process in Windows Task Manager. The following are some possible attempts:
A. Open the Computer DOS form and start manually via ADB start-server. Assuming that a successful startup occurs, you will be able to find the Adb.exe or Adb.exe *32 process in Windows Task Manager:
b, assuming the above method does not work, then it must be the port of the Adb.exe process is occupied by other processes. At this point we are able to solve this problem through the I, II, and III three steps:
I, because adb.exe default port is 5037. So you can see the port usage by using the following command:
C:\users\gaohuanjie>netstat-aon|findstr "5037" TCP 0.0.0.0:5037 0.0.0.0:0 LISTENING 2736
II, through the above command can be seen 2736port occupied 5037port, through such as the following command to see which process used 2736port:
C:\users\gaohuanjie>tasklist|findstr "2736" TFtpServr.exe 2736 Services 0 13,616 K
III. Locate the process named TFtpServr.exe in Windows Task Manager, end the process, and then start eclipse (assuming the Adb.exe process failed to start. Manual start-up is possible).
How to resolve the ensure that ADB is correctly located at ...