【问题标题】:Connect more than one android devices without USB(using wifi) is it possible?可以在没有 USB(使用 wifi)的情况下连接多个 android 设备吗?
【发布时间】:2018-06-08 18:36:58
【问题描述】:

我按照以下步骤连接我的设备,并且已经通过此链接 Adb over wireless without usb cable at allConnecting two android devices using wifi 仍未连接,并且仅此链接 adb error: more than one device - android

  • 我通过 USB 数据线将设备连接到计算机。
  • 转到平台工具路径。
  • 运行 adb tcpip 5555。
  • 断开我的设备(拔下 USB 数据线)。
  • 我进入设置->关于手机->状态查看我手机的IP地址。
  • 运行 adb connect :5555。

我在终端上收到此错误

【问题讨论】:

    标签: android adb


    【解决方案1】:

    编辑: 当连接超过 1 个设备时,您还必须提供设备 ID 才能通过 wifi 打开 adb。

    adb -s <device ID> tcpip 5555
    

    我从这里得到了答案: https://stackoverflow.com/a/38348791/4428159

    同时提供您的手机 ip:

    adb: usage: adb connect &lt;host&gt;[:&lt;port&gt;]

    host 是您要连接的手机的 IP 地址。 您必须为要连接的所有设备执行此操作。

    【讨论】:

    • 我的第一台设备已正确连接,但关于我的第二台设备的问题,它在命令提示符下给出的错误不止一个模拟器或设备。
    • 哦,好的,然后去你手机中的开发者设置,手动开启adb over network。它现在可以工作。我会用 USB 数据线测试你上面给出的场景并告诉你
    猜你喜欢
    • 2016-09-14
    • 1970-01-01
    • 2013-09-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多