6

I am trying to connect my Android 11 device with android studio over adb wifi but it is not working.

I updated to latest stable bumblebee and updated my SDK I tried turning off firewall on my pc but it is same result.

When I use QR code method my android phone just shows "pairing device" and nothing happens If I try the code method, android studio just shows "searching for devices" but nothing happens

and, yes, I enabled wireless debugging on my phone and I am connected to the same wifi network.

I don't know if the problem is with my computer or phone. I do not have any other Android11+ phone to try with

4

3 回答 3

4

Settings -> Build, Execution... -> Debugger -> Built-in Server

并在Built-in Server选项中将值设置Port为您在手机中看到的相同端口并勾选可以接受外部连接

之后进行无线配对,您的设备将立即显示

于 2022-01-31T20:48:14.210 回答
3

我遇到了和你一样的问题。通过 QR 配对或配对码配对均无效。

因此,我尝试通过adb connect [phone_ip]:[port]在终端中输入进行连接,并且效果很好。甚至不需要用 USB 将手机插入电脑。您的手机会在 Wifi 调试设置中的“与 QR 码配对”选项上方告诉您 IP 和端口。只需连接到该地址。

于 2022-01-30T21:44:08.373 回答
0

我遇到了同样的问题。二维码、配对码甚至使用“adb connect [phone_ip]:[port]”方法手动连接都不起作用。但是,一旦我禁用调制解调器设置上的“ AP 隔离”选项,问题就解决了。

于 2022-02-01T20:31:24.133 回答