无法使用adb connect启用wifi调试

Mar*_*ria 1 android visual-studio xamarin.android

我正在通过 wifi 连接到 xxx:xxx:x:xxx:5556 在 Phone1 上调试我的 xamarin android 应用程序。我尝试在 Phone2 上通过 wifi 调试应用程序,其中只有 USB 调试是直接的选项。我用来连接 Phone2 的命令是 adb tcpip 5555、adb connect xxx:xxx:x:xxx:5555。现在我尝试连接回 Phone1: adb connect xxx:xxx:x:xxx:5556 它给我错误: “无法连接 xxx:xxx:x:xxx:5556:5555: 无法解析主机 'xxx .xxx.x.xxx:5556' 和端口 5555: 没有这样的主机已知” 我该如何解决这个问题?

Ere*_*mir 7

尝试以下操作/命令序列以通过 WiFi 调试 USB 主机设备:

  • 停止USB主机
  • 连接USB调试线

adb 终止服务器

亚行 TCPIP 5555

亚行设备

should show something like 
    List of devices attached
    99679a67        device
Run Code Online (Sandbox Code Playgroud)
  • 找到您的设备 IP 地址并:

亚行连接192.168.14.94:5555

亚行设备

should show something like 
    List of devices attached
    99679a67        device
    192.168.14.94:5555      device
Run Code Online (Sandbox Code Playgroud)
  • 断开USB调试线

亚行连接192.168.14.94:5555

should show
    connected to 192.168.14.94:5555
Run Code Online (Sandbox Code Playgroud)

亚行设备

should show
    List of devices attached
    192.168.14.94:5555      device
Run Code Online (Sandbox Code Playgroud)
  • 如果需要,启动设备上的 USB 主机。如果您只需要 WiFi 调试,请忽略

  • 通过WiFi自由调试