zoukankan      html  css  js  c++  java
  • android-出错之-The connection to adb is down, and a severe error has occured.

    cmd跳到sdk tools文件路径下 
    adb kill-server 
    然后再adb start-server 

    ---------------------------------------------

    服务没有起来。解决方法:http://blog.csdn.net/id19870510/article/details/

    1:今天调试android的时候发现一个诡异的问题

     

    1. C:Usersxxxx>adb start-server  
    2. adb server is out of date.  killing...  
    3. ADB server didn't ACK  
    4. * failed to start daemon *  


    adb 不管执行 shell devices 还是logcat 都会报错

     

     

    1. adb server is out of date.  killing...  

    究其源就是adb server没启动

     

    到stackoverflow上查了一下 经过分析整理如下:

     

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

    原来adb server 端口绑定失败

     

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

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

    打开任务管理器kill掉4236 这个进程。ok

     

    至此问题解决了

  • 相关阅读:
    vue $emit的使用
    flask config 环境变量配置
    get请求
    下载及安装
    测试用例写作
    系统测试
    测试方法
    软件质量
    测试基础
    子网掩码
  • 原文地址:https://www.cnblogs.com/meetcomet/p/3344814.html
Copyright © 2011-2022 走看看