简体   繁体   English

Android ADB在eclipse中没有问题

[英]Android ADB didn't ack issue in eclipse

I have spent around 5 hrs on this problem. 我花了大约5个小时来解决这个问题。 I have read the same question on stackoverflow, but none of the solutions solved my problem... First, it gives me: 我在stackoverflow上读过同样的问题,但没有一个解决方案解决了我的问题...... 首先,它给了我:

[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. 为了解决这个问题,我在任务管理器中杀死了adb.exe,重新启动了eclipse。 Then go to DDMS, reset adb. 然后转到DDMS,重置adb。 NO LUCK... 没运气...

Then, I go to command line window, type adb kill-server and adb start-server , it gives me: 然后,我进入命令行窗口,键入adb kill-serveradb start-server ,它给了我:

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. 我有一个在eclipse上开发的项目,所以真的需要尽快解决这个问题。 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. ) (正如许多解决方案所示,我杀了我的adb.exe数千次,但它在2秒后立即出现在任务管理器中。)

I had the same problem, here is what actually helped me: 我有同样的问题,这是实际帮助我的:

  1. Go to platform-tools in Android SDK directory. 转到Android SDK目录中的平台工具

  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: 现在我知道adb没有响应的原因是因为它无法绑定到端口5037.使用以下命令找出占用端口的进程:

    netstat -ano | findstr 5037

    Output: 输出:

    找到端口绑定

  4. Note that process with PID 4888 is occupying port 5037. 请注意,PID 4888的进程占用端口5037。

  5. Open Task Manager , click on Details tab, find the process and kill it, tfadb.exe in this case. 打开任务管理器 ,单击“ 详细信息”选项卡,找到该进程并将其终止,在这种情况下为tfadb.exe。 it may vary for me it is sh.exe and port 4599 and delete all adb.exe 它可能会有所不同,它是sh.exe和端口4599并删除所有adb.exe

    流程

  6. Retry adb kill-server and adb start-server , hopefully adb is up running fine. 重试adb kill-serveradb start-server ,希望adb运行良好。

    精细

Killing the process in the TASK MANAGER solves it in my case. 在TASK MANAGER中杀死进程可以解决我的问题。 After killing it run adb start-server or adb devices and you should be fine 杀死后运行adb start-serveradb设备 ,你应该没问题

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. 因为我的电脑上安装了一个小的助手插件,所以它一直在后台运行adb.exe。 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. 我有一个HTC设备,其驱动程序软件(HTC Sync)试图在我尝试从Eclipse运行的同时使用adb运行进程。 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. 如果您的设备上有可能需要安装驱动程序的HTC Sync程序,请关闭此程序以防止其并行执行adb。 So far for me, this has fixed it 100 percent. 到目前为止,对我而言,这已经100%修正了它。

Sometimes when we are running SnapPea , it is running a background process called "wandoujia_adb" . 有时当我们运行SnapPea时 ,它正在运行一个名为“wandoujia_adb”的后台进程。 when killing the process and running the command "adb start-server" in cmd promt, i get the following o/p text to cmd promt: 当杀死进程并在cmd promt中运行命令“adb start-server”时,我得到以下o / p文本到cmd promt:

C:\\Users**>adb start-server C:\\ Users **> adb start-server
* daemon not running. *守护程序没有运行。 starting it now on port 5037 * 现在从端口5037开始*
* daemon started successfully * *守护进程成功启动*

Here Is your Solution 这是你的解决方案

  1. Kill ADB process 杀死亚行流程
  2. CLose Eclipse 关闭Eclipse
  3. Remove Lock File .metadata of workspace 删除工作区的锁定文件.metadata
  4. Ensure Only one Java Whether JDK or JRE in installed if found remove the previous version 确保只有一个Java如果找到JDK或JRE,则删除以前的版本
  5. Use Ccleaner to remove Temp files 使用Ccleaner删除Temp文件
  6. Clean Registry too 清理注册表
  7. Restart the system 重启系统
  8. Restart Eclipse 重启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. 即使您在任务管理器中将其删除,也会重新启动adb。

I have tried many approaches I've found here, but just one worked out perfectly: 我尝试了很多我在这里找到的方法,但只有一种方法完美无缺:

UNINSTALL AVAST ANTIVIRUS! UNINSTALL AVAST ANTIVIRUS!

I had a mobogenie plugin installed on my machine which was continuously running adb. 我的机器上安装了一个mobogenie插件,它一直在运行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. 在我的情况下,我使用mobogeine通用驱动程序,当我从任务管理器结束任务adb.exe ,它会在1-2秒内再次重新占用另一个端口号。

To get rid of this problem I have to disconnect my phone & 1st kill mobogeine driver, then adb.exe does not restarts agian. 要摆脱这个问题,我必须断开我的手机和第一个杀死mobogeine驱动程序,然后adb.exe不会重新启动adb.exe Now run adb start-server . 现在运行adb start-server If the success message shown then everything worked perfectly. 如果显示成功消息,那么一切都很完美。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 "Eclipse 错误“ADB 服务器未确认,无法启动守护程序”" - Eclipse error "ADB server didn't ACK, failed to start daemon" React-Native、Android、Genymotion:ADB 服务器没有 ACK - React-Native, Android, Genymotion: ADB server didn't ACK ADB服务器在macOS上没有确认 - ADB server didn't ACK on macOS Mac上Android studio3.3.2错误“ADB服务器没有ACK,无法启动守护进程” - Android studio3.3.2 error “ADB server didn't ACK, failed to start daemon” on Mac Genymotion在Windows上不起作用“ ADB服务器未确认” - Genymotion doesn't work “ADB server didn't ACK” on Windows adb服务器在处理MAC时没有确认 - adb server didn't ACK while working on MAC adb服务器已过期。 正在杀死…ADB服务器未确认*无法启动守护程序* - adb server is out of date. killing… ADB server didn't ACK * failed to start daemon * Appcelerator Studio / Titanium:错误:无法启动ADB(代码255):ADB服务器未确认 - Appcelerator Studio / Titanium: Error: Failed to start ADB (code 255): ADB server didn't ACK ADB服务器未确认(Asus Transformer Pad TF700T) - ADB server didn't ACK (Asus Transformer Pad TF700T) adb服务器已过期。 kill ...无法绑定'tcp:5037'ADB服务器没有确认*在ubuntu 14.04 LTS中无法启动守护进程* - adb server is out of date. killing… cannot bind 'tcp:5037' ADB server didn't ACK * failed to start daemon * in ubuntu 14.04 LTS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM