这几天突然发现eclipse开发android app时候,手机无法识别出来了,邪门了,自己动手试了一下adb命令:
H:\changeself\adt-bundle-windows-x86-20130729\sdk\platform-tools>adb devices
adb server is out of date. killing...
ADB server didn't ACK
* failed to start daemon *
error: unknown host service
H:\changeself\adt-bundle-windows-x86-20130729\sdk\platform-tools>adb devices
adb server is out of date. killing...
ADB server didn't ACK
* failed to start daemon *
error: unknown host service
H:\changeself\adt-bundle-windows-x86-20130729\sdk\platform-tools>adb kill-server
* server not running *
H:\changeself\adt-bundle-windows-x86-20130729\sdk\platform-tools>adb start-serve
r
adb server is out of date. killing...
ADB server didn't ACK
* failed to start daemon *
看来问题比较明确了,估计adb的端口被占用了。
以前自己也发现金山毒霸,豌豆夹,91手机助手,360等这一票PC软件,搞得自己的adb 经常冲突,这次电脑中又是何等妖孽捣乱呢?
看了任务管理器,发现了一个可疑的进程:
对了,就是tfadb.exe, 签名列表里写的很清楚:Beijing Funshion Online Technologies Ltd.,把这个进程干掉之后,就可以了。
H:\changeself\adt-bundle-windows-x86-20130729\sdk\platform-tools>adb start-serve
r
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
H:\changeself\adt-bundle-windows-x86-20130729\sdk\platform-tools>adb devices
List of devices attached
04aad15a34406300 device
对了,对于这类adb无法启动的终极解决方法(忘记哪个老外写的):
Try below steps:
adb kill-server
adb start-server
it worked for me this way, Eclipse should be closed before issuing these commands.
前提是你的adb已经配置好了。 如果这时候依然didn't ACK,那么启动任务管理器,看看是否有adb.exe.有的话关掉,再重复以上动作就可以了。