亚行不能启动​​守护进程,CreateProcess的失败,错误2 [英] adb cannot start daemon, CreateProcess failure, error 2

查看:592
本文介绍了亚行不能启动​​守护进程,CreateProcess的失败,错误2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是无法运行亚行根或任何ADB命令。我碰到下面的错误。我设置 ADB_TRACE = 1

I an unable to run adb root or any adb command. I get the following error. I set ADB_TRACE=1:

C:\WINDOWS\system32>adb root
system/core/adb/adb.c::main():Handling commandline()
system/core/adb/adb_client.c::_adb_connect():_adb_connect: host:version
system/core/adb/sysdeps_win32.c::socket_loopback_client():socket_loopback_client: could not connect
to tcp:5037
system/core/adb/adb_client.c::adb_connect():adb_connect: service root:
* daemon not running. starting it now on port 5037 *
CreateProcess failure, error 2
* failed to start daemon *
error: cannot connect to daemon

我使用Windows 7。

I am using Windows 7.

netstat -a可我没有看到任何其他使用端口5037.当我运行ADB,我观察到亚行瞬间显示在任务管理器,但随后消失了。 Windows防火墙处于关闭状态。我得到同样的结果,如果我跑 CMD 以管理员身份。

From netstat -a I don't see anything else using port 5037. When I run adb, I observe that adb momentarily is displayed on Task Manager, but then it goes away. Windows Firewall is turned off. I get the same results if I run cmd as administrator.

推荐答案

我早就解决了这个问题,但没有更新了这个问题。

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

我有,因为我是跑不正确的adb的可执行文件这一问题。在不同的目录\ Windows \ System32下和另:我有一个可执行文件℃。该版本 C:\ WINDOWS \ SYSTEM32 有没有必要全部由亚行而在其他目录中的版本做了文件。我不知道这些文件是,但亚洲开发银行执行的是同一版本的两个目录中。由于 C:Windows \ System32下是在PATH第一,该版本首次执行。我删除了亚行从Windows目录,而问题就走开了。

I was having this issue because I was running the incorrect adb executable. I had one executable in C:\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. Since C:Windows\system32 was in the PATH first, that version was executed first. I removed adb from the Windows directory, and the problem went away.

这篇关于亚行不能启动​​守护进程,CreateProcess的失败,错误2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆