'Android Studio BumbleBee pair wifi not working
I am trying to connect my Android 11 device with the android studio over adb wifi but it is not working.
I updated to the latest stable bumblebee and updated my SDK I tried turning off the firewall on my pc but it is the same result.
When I use the QR code method my android phone just shows "pairing device" and nothing happens If I try the code method, the 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
Solution 1:[1]
I was having the same problem as you. Neither pairing by QR nor by pairing code worked.
So I tried connecting by typing adb connect [phone_ip]:[port]
in the terminal and that worked flawlessly. Didn't even need to plug the phone into the computer with a USB. Your phone will tell you the IP and port right above the "pair with QR code" option inside the Wi-Fi debugging setting. Just connect to that address.
Solution 2:[2]
Go to Settings -> Build, Execution... -> Debugger -> Built-in Server
and in the Built-in Server
option set the value of Port
as the same port you see in your phone and tick the Can accept external connections
after that go to wireless pairing and your device will show now
Solution 3:[3]
I had this issue; it paired fine the first time in-app but never worked again when trying to pair or connect directly from Android Studio.
What I now do to connect/pair is the following:
- Open your phone's settings and be sure to enable wireless debugging in developer options
- Click
Pair device with pairing code
, and keep it on that screen. - Now, go into a terminal and
cd
into the%LOCALAPPDATA%\Android\sdk\platform-tools
directory. - After that, type
adb pair <PHONE_IP>:<PHONE_PORT>
- Input the pairing code when prompted
- Finally, run
adb connect <PHONE_IP>:<PHONE_PORT_PROVIDED_ABOVE_PAIR_WITH_QR_BUTTON>
, and it should connect; Android Studio will automatically detect the connection, so that's it!
Solution 4:[4]
In my case, I have a galaxy s10e, and I need to put my phone in charge and activate wifi debugging and when it's connected with android studio, I can unplug the phone and it still works. In Huawei there is an option in developer options "Allow ADB debugging in load only mode", we can disable it and it works without charging the phone. On s10e there is no such option, I think that it is allowed by default and we can't change it.
Solution 5:[5]
I was having the same problem. QR Code, Pairing code, or even connecting manually with the "adb connect [phone_ip]:[port]" method didn't work. However, the problem was solved as soon as I disabled the "AP isolation" option on the modem settings.
Solution 6:[6]
It may be worth your while to ensure:
- The relevant API is installed in Android Studio (either 30 or 31/"S" since this is a feature only available on phones running Android 11 and up).
- adb.exe is not blocked by your system's firewall (on Windows, check this in Windows Security > Firewall and network protection > allow an app through firewall).
- The latest build-tools are installed, as mentioned in the comments.
After that, the connection wizard at least recognized my device (Samsung Note 10), but failed to connect and gave a generic error message. I avoided this by using adb pair <ip-address>:<port> <code>
as mentioned in this answer. Seems like this feature still has a ways to go.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Rahul |
Solution 2 | Rahul |
Solution 3 | Rahul |
Solution 4 | Rahul |
Solution 5 | Rahul |
Solution 6 | gorilla_glue |