Solution for the connection to ADB are down problem in Android programming _android

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.