zoukankan      html  css  js  c++  java
  • 消除ADB错误“more than one device and emulator”的方法

    当我连着手机充电的时候,启动模拟器调试,运行ADB指令时,报错。
    C:Usersgaojs>adb shell
    error: more than one device and emulator
    C:Usersgaojs>adb install e:good.apk
    error: more than one device and emulator

    碰到这样的情况。首先要查一下,是不是真的有多个设备或模拟器。
    C:Usersgaojs>adb devices
    List of devices attached
    emulator-5554   device
    4dfadcb86b00cf05        device
    发现还真是多个设备,那就须要为ADB命令指定设备的序列号了。
    C:Usersgaojs>adb -s emulator-5554 shell
    也就是如上所看到的,给命令加上-s的參数就能够了!

    假设实际上仅仅有一个设备或模拟器,而且查到有offline的状态。
    那就说明是ADB本身的BUG所导致的,就须要用例如以下的方法处理下了:
    C:Usersgaojs>adb kill-server
    C:Usersgaojs>taskkill /f /im adb.exe
    第一条命令是杀ADB的服务。第二条命令是杀ADB的进程。
    假设第一条没实用,才考虑用第二条命令再试试看的。
  • 相关阅读:
    Java消息队列-Spring整合ActiveMq
    控制 Memory 和 CPU 资源的使用
    真的了解js生成随机数吗
    vue原来可以这样上手
    Weex系列一、构建Weex工程
    MS Word 目录排版
    mac上使用终端编译omp代码
    x的平方根
    如何进行特征选择
    单词模式
  • 原文地址:https://www.cnblogs.com/jzssuanfa/p/7137341.html
Copyright © 2011-2022 走看看