adb cannot start daemon, CreateProcess failure, error 2

本文介绍了作者遇到的ADB无法启动的问题及其解决方案。问题源于环境变量PATH中优先级较高的C:Windowssystem32目录下的ADB可执行文件缺少必要的配置文件。通过移除此目录下的ADB文件,问题得以解决。
错误: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程序,然后问题就解决了!!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值