Android adb.exe程序启动不起来,如何处理

常常遇到 Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be executed.java

遇到问题描述:android

运行android程序控制台输出windows

[2012-07-18 16:18:26 - ] The connection to adb is down, and a severe error has occured.
[2012-07-18 16:18:26 - ] You must restart adb and Eclipse.
[2012-07-18 16:18:26 - ] Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be executed.工具

解决问题:google

百度google你们多说的是任务管理器 kill掉adb 或者重启adb server,但我任务管理器就没有adb ,猜想是某个程序占用了adb端口。因而按此思路查找。rest

5037为adb默认端口 查看该端口状况以下:orm

netstat -aon|findstr "5037"server

TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 6540进程

发现6540占用了 5037端口,继续查看6540的task,发现是wandoujia .以下所示ip

tasklist|findstr "6540"

wandoujia_daemon.exe 6540 Console 1 4,276 K

接下来问题就好解决了,在任务管理器kill掉wandoujia_daemon.exe ,运行android程序,ok .

 

1.关闭豌豆荚进程

2.adb kill-server

3.adb start-server

4.重启Eclipse

OK

 

如何操做 adb kill-server和adb start-server

cmd窗口

一、打开cmd窗口,进入adb.exe所在的文件夹目录,(adb是android中的一个颇有用的工具,用来查看android虚拟机中内容,并进行相应操做),由于个人android-sdk-windows是放在D盘上,因此要先进入D盘,直接输入D:

如图所示就能够直接进入D盘了,再输入cd android-sdk-windows\platform-tools 从而进入了adb.exe所在的目录。

相关文章
相关标签/搜索