skip to Main Content

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

15

Answers


  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.

    Login or Signup to reply.
  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

    Login or Signup to reply.
  3. 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.

    Login or Signup to reply.
  4. 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%Androidsdkplatform-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!
    Login or Signup to reply.
  5. 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.

    Login or Signup to reply.
  6. 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.

    Login or Signup to reply.
    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
    Login or Signup to reply.
  7. 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.

    Login or Signup to reply.
  8. 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.

    Login or Signup to reply.
  9. Try to update SDK Platform-Tool and Build-tools.

    Login or Signup to reply.
  10. Enable wifi debug on your phone.

    Then write in terminal of android studio:
    Navigate to platform-tools

    cd %LOCALAPPDATA%Androidsdkplatform-tools
    

    and then:

    ./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

    Login or Signup to reply.
  11. I was able to get it to pair (Windows 11), by doing this:

    1. Disable wireless debugging on the Android device
    2. Toggle the computer’s WiFi off/on
    3. Re-enable wireless debugging
    4. Click "Pair using Wi-Fi" in Android studio
    Login or Signup to reply.
  12. My problem was with the file "devices.xml" located in $USER_FOLDER/.android
    I have renamed it and the problem goes.

    Login or Signup to reply.
  13. I have reinstalled platform-tools and it helped.

    Login or Signup to reply.
  14. open terminal and type
    cd %LOCALAPPDATA%Androidsdkplatform-tools
    ./adb connect <device_ip>:<device_port>

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search