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

    在Android开发时,有时我们开启虚拟机执行程序时。会报类似下面错误:

    [2015-07-19 15:08:29 - TestXiaoYanLibrary] The connection to adb is down, and a severe error has occured.
    [2015-07-19 15:08:29 - TestXiaoYanLibrary] You must restart adb and Eclipse.
    [2015-07-19 15:08:29 - TestXiaoYanLibrary] Please ensure that adb is correctly located at 'G:eclipseadt-bundle-windows-x86_64-20140702sdkplatform-toolsadb.exe' and can be executed.

    去百度了一下,可能是下面的情况:

    a:模拟器不稳定。有时须要又一次部署环境,甚至有时须要又一次建立模拟器和新建个avd。

    b:可能是默认port被占用,在cmd中键入netstat查看。关掉有冲突的port程序,或者设置新的port。

     

    c:将platform-tools文件夹和tools文件夹加到Path环境变量中。 

    d:将Eclipse进入DDMS模式,重新启动ADB 和Eclipse。

    解决方式:

    (1)普通情况都不须要太麻烦。直接切换到DDMS页面,选择reset adb就可以。



    (2)若经过第一个步骤,还是不行的话,运行一下操作:(在win7中的操作)

    启动任务管理器-->进程页面-->寻找并选中adb.exe进程-->结束该进程-->再进行第一步的操作


    (3)若发现虚拟机的状态不是在线(online),就把它关闭,重新启动打开,就可以。

  • 相关阅读:
    两线段是否相交模板
    树的距离
    Codeforces Round #369 (Div. 2)-D Directed Roads
    Codeforces Round #369 (Div. 2)-C Coloring Trees
    Codeforces Round #374 (Div. 2)-D Maxim and Array
    zstu-4243 牛吃草
    Codeforces Round #447 (Div. 2)
    zstu 4247-萌新的旅行
    CDQ分治求前缀和
    self.faceshowing = !self.facshowing无效,了,原来set
  • 原文地址:https://www.cnblogs.com/bhlsheji/p/5254308.html
Copyright © 2011-2022 走看看