zoukankan      html  css  js  c++  java
  • 安卓 开发 The connection to adb is down, and a severe error has occured.

     

    The connection to adb is down, and a severe error has occured.问题解决

    其原因就是其他进程占用了  ADB的端口,所以无法启动

    遇到问题描述:

    运行android程序控制台输出

    [2013-06-25 11:10:32 - MyWellnessTracker] The connection to adb is down, and a severe error has occured.
    [2013-06-25 11:10:32 - MyWellnessTracker] You must restart adb and Eclipse.
    [2013-06-25 11:10:32 - MyWellnessTracker] Please ensure that adb is correctly located at 'E:SDKplatform-toolsadb.exe' and can be executed.

    有很多种情况,所以也有很多解决方法:

    1、任务管理器 kill掉adb 或者重启adb server

    2、查看任务管理器没有adb,猜测是某个程序占用了adb端口

    5037为adb默认端口 查看该端口情况如下:

    查看:cmd —— netstat -aon|findstr "5037"

     TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       5408
     TCP    127.0.0.1:5037         127.0.0.1:49542        ESTABLISHED     5408

    发现5408占用了 5037端口,继续查看5408的task:

    查看: tasklist|findstr "5408"

    tadb.exe                      5408 Console                    1      2,980 K

    发现是tadb.exe占用,直接在任务管理器里面kill掉或

    taskkill /f /im tadb.exe

    Tip:1)、tasklist 可以找到任务管理器所有进程

              2)、taskkilll /f /im 程序名1.exe /f /im 程序名2.exe .... 可以kill掉多个程序

    3、重新开启adb

    adb kill-server 
    adb start-server

  • 相关阅读:
    信用卡:银联,VISA,MasterCard
    Syncthing vs BitTorrent Sync
    语言代码
    ATMEL精妙的IRQ中断处理过程
    CAN 总线通信控制芯片SJA1000 的读写
    ARM ® and Thumb ®-2 指令系统
    DeJaVu update history
    74系列的型号
    2007 Audi A4 INSTRUMENT CLUSTER WIRING DIAGRAM
    0-10岁儿童体重、身高参考值
  • 原文地址:https://www.cnblogs.com/zyy258963/p/3586040.html
Copyright © 2011-2022 走看看