简体   繁体   中英

Android ADB didn't ack issue in eclipse

I have spent around 5 hrs on this problem. I have read the same question on stackoverflow, but none of the solutions solved my problem... First, it gives me:

[2013-02-28 14:48:21 - adb] ADB server didn't ACK
[2013-02-28 14:48:21 - adb] * failed to start daemon *

To solve that, I kill the adb.exe in task manager, restart eclipse. Then go to DDMS, reset adb. NO LUCK...

Then, I go to command line window, type adb kill-server and adb start-server , it gives me:

adb server is out of date. killing...
ADB server didn't ACK
fail to start deamon

Now I don't know what to do. I have a project to develop on eclipse, so really need to solve this problem soon. Someone please help!!

(As many solution indicated, I killed my adb.exe thousands of times, but it showed up immediately in task manager after 2 seconds. )

I had the same problem, here is what actually helped me:

  1. Go to platform-tools in Android SDK directory.

  2. Type:

    adb nodaemon server

    Output:

    cannot bind 'tcp:5037'

  3. Now I know the reason adb not responsive is because it can not bind to port 5037. Use following command to find out the process that occupies the port:

    netstat -ano | findstr 5037

    Output:

    找到端口绑定

  4. Note that process with PID 4888 is occupying port 5037.

  5. Open Task Manager , click on Details tab, find the process and kill it, tfadb.exe in this case. it may vary for me it is sh.exe and port 4599 and delete all adb.exe

    流程

  6. Retry adb kill-server and adb start-server , hopefully adb is up running fine.

    精细

Killing the process in the TASK MANAGER solves it in my case. After killing it run adb start-server or adb devices and you should be fine

solved the problem. Because I have a small assistant plugin installed on my pc, it has an adb.exe running in the background all the time. So after I uninstalled the plugin, the error has gone!

I have an HTC device, whose driver software (HTC Sync) tried to run processes using adb at the same time that I was trying to run from Eclipse. If you have a program like HTC Sync for your device that might have been needed to install the driver, close this program to keep it from executing adb in parallel. So far for me, this has fixed it 100 percent.

Sometimes when we are running , it is running a background process called . ,它正在运行一个名为的后台进程。 when killing the process and running the command "adb start-server" in cmd promt, i get the following o/p text to cmd promt:

C:\\Users**>adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

Here Is your Solution

  1. Kill ADB process
  2. CLose Eclipse
  3. Remove Lock File .metadata of workspace
  4. Ensure Only one Java Whether JDK or JRE in installed if found remove the previous version
  5. Use Ccleaner to remove Temp files
  6. Clean Registry too
  7. Restart the system
  8. Restart Eclipse

If you have your device connected and you are trying to test through an emulator, make sure that a device sync agent isnt running in the background. This relaunches the adb even after you kill it in task manager.

I have tried many approaches I've found here, but just one worked out perfectly:

UNINSTALL AVAST ANTIVIRUS!

I had a mobogenie plugin installed on my machine which was continuously running adb. Uninstalled it and got the problem solved.

In my case I was using the mobogeine universal driver, when I end task adb.exe from task manager, It restarts again in 1-2 seconds occupying another port number.

To get rid of this problem I have to disconnect my phone & 1st kill mobogeine driver, then adb.exe does not restarts agian. Now run adb start-server . If the success message shown then everything worked perfectly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM