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,问题解决!

  • 相关阅读:
    Java多线程之二:Thread
    并发编程之Future/FutureTask/CompletionService/CompletableFuture
    Java8使用并行流(ParallelSream)
    IDEA 运行报Command line is too long解法
    Comparator VS Comparable
    设计模式6-观察者模式
    设计模式-策略模式VS工厂模式
    设计模式4-策略模式
    设计模式5-代理模式
    设计模式3-工厂模式
  • 原文地址:https://www.cnblogs.com/suncoolcat/p/3281254.html
Copyright © 2011-2022 走看看