zoukankan      html  css  js  c++  java
  • [Android] The connection to adb is down, and a severe error has occured

    一.ADB server didn't ACK
    在配置完Android环境后,执行第一个程序时,遇到了例如以下错误:
            ADB server didn't ACK
            * failed to start daemon *
    它可能的原因是port5037被占用,须要查找占用5037(Android默认)port的PID,在cmd中输入:
            netstat -ano | findstr "5037"
    输出进程:
            TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       9292  
            TCP    127.0.0.1:5037         127.0.0.1:49422        ESTABLISHED     9292  
            TCP    127.0.0.1:49422        127.0.0.1:5037         ESTABLISHED     3840
    此时把该进程“9292”结束,代码例如以下:
           
    TASKLIST | findstr "9292"
    二.The connection to adb is down, and a severe error has occured
    在运行上面的结果后可能还会遇到一个错误,常常出现的错误:
            The connection to adb is down, and a severe error has occured.
            You must restart adb and Eclipse.
            Please ensure that adb is correctly located at 'D:..platform-toolsadb.exe' and can be executed.
    例如以下图所看到的:

    解决方法是在cmd中调用adb kill-server,再调用adb start-server
    开启服务.可是可能会出现错误:
            adb server is out of date.  killing... 
            ADB server didn't ACK 
            * failed to start daemon *

    这是由于port号被占用,查看豌豆荚或手机助手占用port号,将kadbqadb
    进程关闭.
    详细方法例如以下:
    1.先将Eclipse和豌豆荚关掉,
    同一时候结束进程kadb.

    2.使用cd去到platform-tools目录下(含有adb.exe),并开启adb服务如我的指令是:
           G:
           cd
    G:softwareProgram softwareAndroidadt-bundle-windows-x86_64-20140321sdkplatform-tools
           
    adb start-server
    成功时输出:
            * daemon not running.Starting it now on port 11888*
            * daemon started successfully *

    最后点击platform-tools目录中adb.exe应用程序,
    再执行程序就可以.
    注意上面的程序上面的程序输出port号为11888,假设你的还是不成功,能够改动环境的port号,例如以下:

    改动port号再按上面的步骤实现就可以.这是配置Android+Eclipse的错误解决方式,希望对你实用~
    (By:Eastmount 2014-10-20 夜2点
    http://blog.csdn.net/eastmount/)

  • 相关阅读:
    Layui数据表格用法
    初识Vue
    使用NPOI导出Excel表
    使用NPOI将Excel表导入到数据库中
    新随笔
    AX2012/D365 SSRS报表开发
    AX2012自定义注释脚本开发
    D365做文件导入导出CSV
    Azure文件上传下载删除(D365可以直接用)
    关于D365/AX2012/C#中的那些json、对象、字符串类型间的转换
  • 原文地址:https://www.cnblogs.com/liguangsunls/p/7157399.html
Copyright © 2011-2022 走看看