简体   繁体   中英

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

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

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.

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!

Enable wifi debug on your phone.

Then write in terminal of android studio:

adb pair [192.xxx.xxx.xxx]:[xxxxx] the data you get from pair with code tab

Press enter.

Then type your pair password.

Then

adb connect [192.xxx.xxx.xxx]:[xxxxx] your data from pair via wifi

If not working again just restart phone and try again

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.

It may be worth your while to ensure:

  1. 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).
  2. 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).
  3. 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.

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 .

Restart you device and wait 30 min and do it again

wireless debugging android studio | Run/install/debug Android applications over Wi-Fi?. Wireless ADB debugging is made much simpler by Android Studio Bumblebee

在此处输入图像描述

Prerequisites: It is essential to make sure that you are running the most recent version of Android Studio which is Android Studio Bumblebee 2021.1.1 or later. A physical device that runs Android 11 or later Options for Developers must be turned on in the device's physical settings. Connect via the identical WiFi system as you are connected to with your Android Studio. Take note of this WiFi connection must be extremely stable.

You can Follow these Steps for Connection Successfully wireless debugging android

  1. Turn off and turn on Wi-Fi on your phone.
  2. Ping the phone firstly: ping 192.168.1.97 . You should see that packets are transmitted.
  3. Now you highly likely can connect to the phone using QR-code or adb pair

I periodically get this problem (Pairing Android Studio on my Mac to Android Phone, the Computer just hangs after phone scans QR code). When I disable and then re-enable wifi debugging on the Android phone, it connects on the next attempt.

I tried everything to fix this and nothing worked. In frustration, I went for a walk. When I came back - it worked.

So while I can't say for sure what fixed it, try turning your phone's WiFi off then on again.

Try to update SDK Platform-Tool and Build-tools.

I was able to get it to pair, by toggling my (Windows 11) computer's WiFi off/on, and then clicking "Pair using Wi-Fi" again.

My problem was with the file "devices.xml" located in $USER_FOLDER/.android I have renamed it and the problem goes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM