zoukankan      html  css  js  c++  java
  • android 运行时出现The connection to adb is down, and a severe error has occured.(转)

    点击项目run,报了这样的错,前几天都好好的:
     
    [2013-09-14 15:27:13 - QualityPicture_Client1.3.1.9.7.1] ------------------------------
     
    [2013-09-14 15:27:13 - QualityPicture_Client1.3.1.9.7.1] Android Launch!
    [2013-09-14 15:27:13 - QualityPicture_Client1.3.1.9.7.1] The connection to adb is down, and a severe error has occured.
    [2013-09-14 15:27:13 - QualityPicture_Client1.3.1.9.7.1] You must restart adb and Eclipse.
    [2013-09-14 15:27:13 - QualityPicture_Client1.3.1.9.7.1] Please ensure that adb is correctly located at 'D:adt-bundle-windows-x86sdkplatform-toolsadb.exe' and can be executed.
     
     
     
    其实很简单,你要改一下系统的环境变量path,由'D:adt-bundle-windows-x86sdk ools改成了'D:adt-bundle-windows-x86sdkplatform-tools
     
    你查看 ools目录发现多了一个adb_has_moved.txt文件,里面明确告诉了原因:The adb tool has moved to platform-tools。原来从SDK R8以后,SDK需要有一个新的组件支持,这个组件叫做Platform-tools,adb已经迁移到这个目录下去了。并且 adb_has_moved.txt文件也说明需要在PATH环境变量中增加platform-tools路径,以便能够从任何地方启动adb.exe。  
    然后重启电脑,启动eclipse,点击run,又报如下错误:
    [2013-09-14 15:27:13 - QualityPicture_Client1.3.1.9.7.1]  ADB server didn't ACK
     
    [2013-09-14 15:27:13 - QualityPicture_Client1.3.1.9.7.1] * failed to start daemon *
     
     
     
    于是我就百度,参考了该篇文章(http://www.cnblogs.com/longqi293/archive/2012/06/19/2554801.html点击打开链接)。可是我没有出现那样的情况。但我还是照着上面的操作,杀死服务,然后启动服务。然后我就重启一下,就可以了。
     
     
     
    还有人说按如下图片的方法:
    
    
  • 相关阅读:
    git rebase 还是 merge的使用场景最通俗的解释
    漏洞复现:Struts2 远程代码执行漏洞(S2-033)
    linux临时网络配置
    漏洞复现:Struts2 S2-032 漏洞环境
    XXE攻击学习
    启用了不安全的HTTP方法【转】
    HTTP参数污染【转】
    逻辑漏洞挖掘方式
    大漏洞时代下的僵尸网络追踪-笔记
    markdown入门杂记
  • 原文地址:https://www.cnblogs.com/chcong/p/3530346.html
Copyright © 2011-2022 走看看