adb cannot start daemon, CreateProcess failure, error 2

错误:adb cannot start daemon, CreateProcess failure, error 2

    I solved this problem long ago, but did not update this question.

    I was having this issue because I was running the incorrect adb executable. I had one executable 
    inC:\Windows\system32 and another in a different directory. The version in C:\Windows\system32 had
    did not have all the files needed by adb whereas the version in the other directory did. I'm not
    sure what those files were, but the adb executable was the same version in both directories.
    SinceC:Windows\system32 was in the PATH first, that version was executed first. I removed adb from
    the Windows directory, and the problem went away.

翻译:

    我在很长时间之前解决了这个问题,但是没有更新。
    出现这个问题的原因是执行了错误的adb程序,在我的C:\Windows\system32目录中有一个adb程序,在别的文件夹里还有一个,其中C:
    \Windows\system32目录中的那个只有adb程序而没有adb执行所需要的配置文件,另外一个文件夹则有这些文件,我不清楚到底adb程序应
    该放在那个文件夹里,但是我知道这两个adb程序版本都一样。在环境变量配置中,C:\Windows\system32目录中的adb要先执行,所以当
    运行eclipse时执行的是C:\Windows\system32目录中的adb,所以导致错误。删除了这个adb程序,然后问题就解决了!!
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
根据引用,"* daemon not running. starting it now on port 5037 * ADB server didn't ACK * failed to start daemon *"这个错误信息表明ADB服务器无法启动。根据引用,问题可能是由于端口5037已经被占用而导致的。为了解决这个问题,你可以按照以下步骤进行操作: 1. 首先,进入命令提示符(cmd)或终端窗口。 2. 执行命令adb kill-server以停止ADB服务器。 3. 然后执行命令adb start-server以启动ADB服务器。 4. 如果仍然无法连接到守护进程并出现错误"cannot connect to daemon",可以尝试执行adb nodaemon server命令,根据引用中的描述,这可能会显示端口绑定失败的错误信息。 5. 如果上述步骤中的命令无法解决问题,可以尝试执行命令netstat -ano | findstr "5037"来查找占用5037端口的进程。 6. 根据引用中的描述,你可能会看到类似于"TCP 127.0.0.1:2568 127.0.0.1:5037 SYN_SENT 516"的信息,其中516是占用5037端口的进程ID。 7. 找到占用5037端口的进程ID后,你可以打开任务管理器,并根据进程ID找到对应的进程,并将其终止。 8. 终止占用5037端口的进程后,重新连接你的设备,应该可以正常连接到ADB服务器了。 综上所述,如果你在连接ADB服务器时遇到"* daemon not running. starting it now on port 5037 * ADB server didn't ACK * failed to start daemon * error: cannot connect to daemon"这个错误,请按照上述步骤进行操作,以解决问题。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值