adb cannot start daemon, CreateProcess failure, er

2019-09-13 05:02发布

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

I am using Windows 7.

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.

标签: android adb
7条回答
\"骚年 ilove
2楼-- · 2019-09-13 05:54

You can try this solution: Move the adb.exe and adbwinapi.dll to X:\Windows\system

It worked for me

查看更多
登录 后发表回答