A solution to the The connection to adb is down problem appears in Android programming

  • 2020-11-26 18:59:06
  • OfStack

This paper analyzes the solution of The connection to adb is down problem in Android programming. To share for your reference, the details are as follows:

1. An error:

BUILD FAILED
D:\workspace\ganji\build.xml:144: The following error occurred while executing this line:
D:\workspace\ganji\build.xml:271: Unable to delete file D:\workspace\ganji\tmp\proguard\tmp.jar

Solution:

1 emulator has been opened, cannot be recompiled, must be closed 1. Used for ant

2. An error:

The connection to adb is down, and a severe error has occured.

Solution:

cmd jump to the sdk tools file path
adb kill-server
And then adb start-ES39en

3. An error:

The connection to adb is down, and a severe error has occured.
[2010-03-11 09:36:56 - HelloOPone] You must restart adb and Eclipse.
[2010-03-11 09:36:56 - HelloOPone] Please ensure that adb is correctly located at 'D:\OPhoneSDK_1.5
\platform-tools\adb.exe' and can be executed.

Solution:

Method 1. adb ES57en-ES58en and then ES59en-ES60en
Method 2. If method 1 does not work, kill adb.exe in the task manager and restart Eclipse.
3. Methods 1 and 2 do not work, so check the last sentence in the error: ES66en-ES67en adb.exe (my error is that there is no folder platform-ES71en under the relevant path
, so I choose to create a new folder and copy all the files in tools to ES74en-ES75en)

4. If the previous method still does not work, it is recommended to re-install 1 system, it is better to change the system.

I hope this article has been helpful in Android programming.


Related articles: