This article analyzes the solution of the connection to ADB are down problem in Android programming. Share to everyone for your reference, specific as follows:
1. 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
Solve:
An emulator has been opened and cannot be recompiled and must be closed. For Ant
2. Error:
The connection to ADB are down, and a severe error has occured.
Solve:
CMD jumps to the SDK tools file path
ADB kill-server
And then the ADB start-server
3. Error:
The connection to ADB are 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 the ADB is correctly located at ' D:\OPhoneSDK_1.5
\platform-tools\adb.exe ' and can be executed.
Solve:
Method 1.cmd in ADB kill-server, then Adb-startserver
Method 2. Method 1 kills Adb.exe in Task Manager and then restarts Eclipse.
Method 3. Methods 1 and 2 do not work, then see the last sentence in the error: whether there are adb.exe in the Platform-tools (my mistake is not platform-tools folder under the relevant path)
, so I chose to create a new folder and copy all the files in the tools to Platform-tools.
4. Before the method tried or not, it is recommended to reinstall a system, preferably a different system.
I hope this article will help you with the Android program.