有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

如果没有电缆,java ADB tcpip命令在windows中无法工作

我遵循以下步骤

  1. 亚洲开发银行tcpip 5555 其显示在TCP模式下重新启动的消息端口:5556
  2. ADB connect 192.168.1.76 它显示连接到192.168.1.76的消息
  3. 亚洲开发银行设备 CE04U3HDDN器件 192.168.1.76:5555设备
  4. 现在我拔掉usb插头

没有设备显示,eclipse中的代码不工作


共 (2) 个答案

  1. # 1 楼答案

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

    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

  2. # 2 楼答案

    遵循以下步骤

    1. 在终端运行adb devices(确保设备通过USB连接)
    2. 然后运行adb tcpip 5555
    3. 之后,要连接,请使用以下命令adb connect 192.168.1.76:5555

    之后,你可以删除USB