adb不能启动
错误提示如下:
The connection to adb is down, and a severe error has occured.You must restart adb and Eclipse.
Please ensure that adb is correctly located at 'XXX' and can be executed.
遇到这种情况可能就是
一、5037这个端口被占用了
adb.exe的端口5037,如果这个端口被占用将导致eclipse的adb无法启动。
netstat -aon|findstr "5037"查看5037端口,查看占用这个端口的pid号,在任务管理器中杀掉这个进程
netstat -aon|findstr "5037"查看5037端口,查看占用这个端口的pid号,在任务管理器中杀掉这个进程
然后再重启eclipse就可以了
二、adb和genymotion冲突了,在genymotion的设置->ADB里面,选择本地的sdk目录就可以了
三、可以尝试
cmd跳到sdk tools文件路径下
adb kill-server
然后再adb start-server
四、查看SDK的platform-tools有没有adb.exe
有可能这个adb.exe会在SDK目录的tools目录下,
这种情况的话,把tools目录里面的全部文件复制到platform-tools这个目录下