android开发中关于adb连接的一个典型问题:

问题现象:
新建一个andriod项目,然后run as,出现如下界面:
[2014-02-13 16:36:54 - 手电筒] ------------------------------
[2014-02-13 16:36:54 - 手电筒] Android Launch!
[2014-02-13 16:36:54 - 手电筒] The connection to adb is down, and a severe error has occured.
[2014-02-13 16:36:54 - 手电筒] You must restart adb and Eclipse.
[2014-02-13 16:36:54 - 手电筒] Please ensure that adb is correctly located at 'D:\adt-bundle-windows-x86-20131030\sdk\platform-tools\adb.exe' and can be executed.

于是百度:
参考:

http://hi.baidu.com/yore2003/item/a7d9e5c125266e0bc710b2a3http://www.cnblogs.com/longqi293/archive/2012/06/19/2554801.html

最终解决问题:
通常做法是---->cmd
cd到D:\adt-bundle-windows-x86-20131030\sdk\platform-tools这个目录下
adb kill-server:
出现

然后在adb start-server


显然,adb server并没有运行,则表名本该adb用的端口被占用了,参考

http://blog.sina.com.cn/s/blog_9d708b4f010155gp.html,了解到是5037端口被占用,遂查看:

发现3756占用了5037端口,继续查看3756的task,如下:
表明是sjk_daemon.exe在使用,于是打开任务管理器,找到进程

原来是金山毒霸里的,应该是手机助手的程序,于是直接退出了金山,再运行就正常了。

另附:

http://blog.csdn.net/mad1989/article/details/9628495,这篇博客也挺好。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值