Chinaunix首页 | 论坛 | 博客
  • 博客访问: 12376722
  • 博文数量: 1293
  • 博客积分: 13501
  • 博客等级: 上将
  • 技术积分: 17974
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-08 18:11
文章分类

全部博文(1293)

文章存档

2019年(1)

2018年(1)

2016年(118)

2015年(257)

2014年(128)

2013年(222)

2012年(229)

2011年(337)

分类: Android平台

2015-03-02 21:38:25

遇到问题描述:
    运行android程序控制台输出
    [2013-10-13 16:45:50 - ] The connection to adb is down, and a severe error has occured.
    [2013-10-1316:45:50 - ] You must restart adb and Eclipse.
    [2013-10-1316:45:50 - ] Please ensure that adb is correctly located at '<--此处显示adb.exe的全路径-->' and can be executed.
  问题分析1
    关闭eclipse,打开windows任务管理器,查看进程中是否有adb.exe或adb.exe *32。
  解决方案1
    如果有则关闭该进程,重新启动eclipse即可;
  问题分析2
    windows任务管理器中就找不到adb.exe或adb.exe *32的进程,可以尝试手动启动adb.exe ;如果手动启动后还找不到adb.exe进程,则    只有一种可能就是adb.exe进程的端口被占用,导致adb.exe未能正常启动所致(adb默认端口为5037)。
  解决方案2
                   1、查看端口使用情况:
                   netstat -aon|findstr "5037"
                    TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       3892
                    2、发现PID=3892占用5037端口,查看5004的task:
                    tasklist|findstr "3892"
                    360MobileLink.exe             3892 Console                    1     19,768 K
                    打开windows管理器结束wandoujia_daemon.exe该进程,启动eclipse,如果adb.exe未能启动,手动启动即可;


测试过程如下:

image 

    找出占用 PORT=3892的进程 ……… 360MoblieLink

image

 

    在任务管理器中是无法直接结束360MoblieLink.exe,而是通过结束360MobileMgr.exe 来结束这个进程。

image 

 

然后重启eclipse,可以看到adb.exe出现

image

 

    启动一下虚拟器测试了一下,OK,没问题。

image

image


参考博客:

http://blog.csdn.net/hyx1990/article/details/12681207

阅读(5944) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~