zoukankan      html  css  js  c++  java
  • Eclipse开发android报错The connection to adb is down

    报错如下:


    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 'E:\Android\android-sdk\platform-tools\adb.exe' and can be executed.
    解决:
    方法1.cmd中adb kill-server,然后adb -startserver
    方法2.方法1不管用,那么在任务管理器中杀死adb.exe,然后重启Eclipse。
    方法3.方法1和2都不管用,那么查看最后一句报错中:platform-tools中是否有adb.exe(我的错误就是在相关路径下面没有platform-tools文件夹,所以我选择新建一个文件夹,并且把tools中的文件全部复制到platform-tools中)

    4.前面是别人总结的方法,我自己碰到的一种情况是“豌豆荚”或“手机助手”类的软件占用了adb,在任务管理器中停止“豌豆荚”及adb后重启adb或eclipse即可。

    5.直接重启电脑,然后运行SDK下面的SDK Manager.exe,选择Virtual devices,启动一个模拟器即可。

    6.

    To restart adb by command line:

    adb kill-server
    adb start-server

    To restart adb in Eclipse:

    1. Window > Show View > Other... > Android/Devices
    2. When the view is showing: View Menu of "Devices" > Reset adb
  • 相关阅读:
    idea gson使用
    spring对象工具类
    java反射判断对象空字段
    说说沟通乱这件事
    RandomShuffleQueue
    学习材料
    python异常处理
    tensorboard基础使用
    深度学习——特殊应用:人脸识别和神经风格转换[13]
    深度学习——目标检测[12]
  • 原文地址:https://www.cnblogs.com/yefengmeander/p/2887974.html
Copyright © 2011-2022 走看看