Eclipse调试Android问题--You must restart adb and Eclipse
来源:互联网 发布:北京行知实践园有感 编辑:程序博客网 时间:2024/05/14 12:49
使用Eclipse调试Android时有时出现如下的错误:
出现这个的时候,就说明你的adb.exe所用的端口:5037被其他进程占用了,这个时候你就需要去查下到底是谁占用了这个端口,查询的步骤如下:
1.查是哪个进程号占用着这个端口:
在命令提示符中输入 netstat -aon|findstr "5037",如下图:
2.根据进程号查找该进程的名称:
在命令提示符中输入 tasklist|findstr "6876" ,如下图:
到这里你会发现,在我自己的电脑上是tadb.exe占用着端口,而这个tadb.exe是什么东西,询问大神后知道这个是腾讯电脑管家或应用宝或刷机精灵搞的一种安卓驱动管理的常驻进程,具体如下图:
解决办法:关闭电脑上的应用宝,刷机精灵,电脑管家并在命令提示符中输入 taskkill /f /t /im tadb.exe杀掉改进程;然后重启adb.exe(命令提示符中输入 adb start-server),如下图:
adb就重启成功了,此时就可以调试程序了。
当然有时候你会发现是这个进程占了5307的端口:
google了下shuame_helper.exe是刷机精灵的进程,到这里你也看到就是应用宝,刷机精灵等占着5307的端口导致adb一直连接不上(已经不想吐槽了),有时你杀掉了一个另一个就起来了,所以当你再次运行adb start-server失败时需要再次看下是谁占着这个端口。从我经历看应用宝,电脑管家,刷机精灵以及搜狗输入法等都会占用“5037”的端口,所以当你调试时发现控制台没有log打出来并且拔下数据线再次插上也不行时,十之八九都是端口被占了,这个时候你用上面的方法查下到底是谁占着这个端口,然后你懂的,当然是杀掉!
参考博客:http://blog.csdn.net/xiaanming/article/details/9401981
0 0
- Eclipse调试Android问题--You must restart adb and Eclipse
- Android调试中报错You must restart adb and Eclipse.
- android初学------关于Eclipse adb 问题"you must restart adb and eclipse“
- You must restart adb and Eclipse.
- You must restart adb and Eclipse
- You must restart adb and Eclipse
- You must restart adb and Eclipse.
- Q: you must restart adb and eclipse
- You must restart adb and Eclipse
- You must restart adb and Eclipse问题的解决
- You must restart adb and Eclipse问题的解决
- Android《You must restart adb and Eclipse的解决办法》
- Eclipse出现 you must restart adb and eclipse的解决办法
- 打开eclipse出现错误:you must restart adb and Eclipse
- you must restart adb and eclipse | ADB 链接错误解决方法
- android中The connection to adb is down .. You must restart adb and Eclipse问题的解决
- you must restart adb and eclipse的相关解决办法
- you must restart adb and eclipse的相关解决办法
- 输出字符数组与其他数组的区别
- C#关键字using的几种用法
- 与学生管理系统中出现错误的相遇(二)
- ADB高级命令
- 移动网络IP化
- Eclipse调试Android问题--You must restart adb and Eclipse
- 性能测试报告基础
- hdu4952Number Transformation
- perf详细介绍
- java学习笔记01--数据类型
- iOS UIImage 使用resizableImageWithCapInsets 适配UIImageView
- 给Category添加属性
- 选择排序之简单选择排序
- 黑马程序员——JAVA面向对象