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. 

    [2010-03-11 09:36:56 - HelloOPone] You must restart adb and Eclipse. 

    [2010-03-11 09:36:56 - HelloOPone] Please ensure that adb is correctly located at 'D:androidSDKAeclipseandroid-sdk-windows-1.5_r2platform-toolsadb.exe' and can be executed. 

    解决: 
    方法1:cmd中adb kill-server,然后adb  start-server 
    方法2:方法1不管用,那么在任务管理器中杀死adb.exe,然后重启Eclipse。

    方法3:方法1和方法2都不能解决。

    cmd中adb  start-server 出现如下:

    C:Usersxxxx>adb nodaemon server
    cannot bind 'tcp:5037'

    原来adb server 端口绑定失败

     

    继续查看到底是哪个端口给占用了

    C:Usersxxxxxx>netstat -ano | findstr "5037"
      TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       4236
      TCP    127.0.0.1:5037         127.0.0.1:49422        ESTABLISHED     4236
      TCP    127.0.0.1:49422        127.0.0.1:5037         ESTABLISHED     3840

    原来被4236这个进程占用了端口,打开任务管理器,杀掉4236这个进程。(可以在任务管理器菜单,查看->选择列中勾选(PID)进程标识符)

    至此问题没有完全解决,再次在cmd中adb start-server

    出现:* daemon not running. starting it now on port 5037 *

    * daemon started successfully *

    重启eclipse,问题解决!

  • 相关阅读:
    smtplib.py
    淘宝链接中的spm参数
    with 上下文管理
    python RecursionError: maximum recursion depth exceeded while calling
    GraphQL两年实战
    Exception 异常处理
    Simple decorator that intercepts connection errors and ignores these if settings specify this.
    namedtuple
    服务治理在猫眼娱乐的演进之路
    路由、限流、熔断 微服务治理
  • 原文地址:https://www.cnblogs.com/suncoolcat/p/3281254.html
Copyright © 2011-2022 走看看