【问题标题】:ADB tcpip command doesnot work in windows without cableADB tcpip 命令在没有电缆的 Windows 中不起作用
【发布时间】:2017-04-18 18:51:57
【问题描述】:

我按照以下步骤操作

  1. 亚行 tcpip 5555 它显示消息在 TCP 模式端口重新启动:5556
  2. ADB 连接 192.168.1.76 它显示连接到 192.168.1.76 的消息
  3. ADB 设备 ce04u3hdtdn 设备 192.168.1.76:5555 设备
  4. 现在我拔掉 USB 插头

没有设备被显示并且eclipse中的代码不起作用

【问题讨论】:

    标签: java android selenium appium


    【解决方案1】:

    按照步骤进行

    1. 在您的终端中运行 adb devices(确保设备通过 USB 连接)
    2. 然后运行adb tcpip 5555
    3. 之后连接使用这个命令adb connect 192.168.1.76:5555

    之后,您可以移除 USB

    【讨论】:

    • 当我运行 adb connect 192.168.1.76:5555 时它显示已连接,但是当我移除我的 USB 并在 cmd 中运行 adb devices 时没有检测到设备
    【解决方案2】:

    运行以下命令。最后一步是imp

    adb kill-server
    + adb kill-server
    root# adb tcpip 5555
    + adb tcpip 5555
    * daemon not running; starting now at tcp:5037
    * daemon started successfully
    restarting in TCP mode port: 5555
    root# adb connect 192.168.43.1:5555
    + adb connect 192.168.43.1:5555
    connected to 192.168.43.1:5555
    adb -s 192.168.43.1:5555 shell
    root# adb -s 192.168.43.1:5555 shell
    + adb -s 192.168.43.1:5555 shell
    /#  <--- connection successful. 
    

    运行 adb -s 192.168.43.1:5555 shell 然后移除 USB

    【讨论】:

      猜你喜欢
      • 2014-09-24
      • 2013-09-20
      • 2011-09-19
      • 1970-01-01
      • 2011-07-27
      • 1970-01-01
      • 1970-01-01
      • 2021-06-07
      • 1970-01-01
      相关资源
      最近更新 更多