Android adb.exe程序启动不起来,如何处理
2015-10-12 22:49
471 查看
原文地址:http://blog.sina.com.cn/s/blog_8fd5421d0101dnlg.html
经常遇到 Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be executed.
遇到问题描述:
运行android程序控制台输出
[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大家多说的是任务管理器 kill掉adb 或者重启adb server,但我任务管理器就没有adb ,猜测是某个程序占用了adb端口。于是按此思路查找。
5037为adb默认端口 查看该端口情况如下:
netstat -aon|findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 6540
发现6540占用了 5037端口,继续查看6540的task,发现是wandoujia .如下所示
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窗
经常遇到 Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be executed.
遇到问题描述:
运行android程序控制台输出
[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大家多说的是任务管理器 kill掉adb 或者重启adb server,但我任务管理器就没有adb ,猜测是某个程序占用了adb端口。于是按此思路查找。
5037为adb默认端口 查看该端口情况如下:
netstat -aon|findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 6540
发现6540占用了 5037端口,继续查看6540的task,发现是wandoujia .如下所示
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窗
相关文章推荐
- Android学习记事(一)
- android-misc-widgets四向(上下左右)抽屉bug修复版--转载
- Android提高第十九篇之"多方向"抽屉--转
- Android 最火的快速开发框架XUtils
- android画文本
- Android开发RadioButton使用方法
- Android toolbar 随笔
- Android学习手记(6) TabActivity和TabHost
- Android开发随笔(一)
- android开发(一):环境搭建
- Windows下载Android源码
- android 的 Testing Support Library 测试支持包(库)
- Android Touch事件传递机制解析
- android背景选择器selector用法汇总
- android 滚动条
- Android 自定义下拉刷新上拉加载更多Listview
- Android view手势缩放与移动
- 利用Android studio快速搭建安卓开发环境
- Android音乐编程:管理音频焦点
- 初学android第一章、第二章