Pair new device over Wi-Fi not working in Android Studio Bumblebee
Asked Answered
P

15

50

when I try to pair a device, neither QR code or Pairing code work and just get stuck searching for a device...

I have a phone with Android 11 & 12 and Wi-Fi debugging is on.

Android Studio "Pair devices" dialog

Pup answered 4/3, 2022 at 15:47 Comment(6)
Does scanning the QR code works?Hirohito
QR code code not workingPup
No it doesn't worksPup
What worked for me: I connected the device using cable and paired the device, after that I used the method suggested by @Mike below to connect.Reganregard
wasn't working for me either, because i was using my phone's camera to scan the qr code, i added the answer where to scan itGabey
Wireless pairing has worked for me for a year. I only have occasional issues with it, and they always seem to be IP related.Linnie
D
64

I'm also facing the same issue. It was working fine for a couple of weeks but since then I'm no longer able to connect to my phone via QR Code or pairing code.

What's working for me is connecting via terminal.

adb connect [phone_ip]:[port]

The details for IP and port can be viewed at Settings > System > Developer Options > Wireless debugging (Under Debugging) > Enable it & you should be able to see "IP address & Port" here.

Decurved answered 15/4, 2022 at 3:4 Comment(6)
That worked. I also had to close the android emulator for pairing before running the connect commandSpanishamerican
I had paired my phone over wifi using the QR code and it appeared in the list of physical devices, but not in the list of available devices to run on. I did adb connect as suggested, and the phone then appeared twice in the list of physical devices - but did appear as an available device, which I can now deploy to. I think something is wrong in Android Studio. But adb connect does seem to get it working.Tortile
Thanks, adb connect [phone_ip]:[port] workedTwosome
How good. Hours of having headache and this just worked.Recital
eh I'm lost. I found ADB in c:\Users\lob\AppData\Local\Android\Sdk\platform-tools\adb.exe. On my phone I had to click pair device with pairing code. It gave me different port than one stated in wireless debugging anyway I provided key and I got success message Successfully paired to 192.168.0.101:35153 [guid=adb-RZ8N31FSJ4Y-aZGH4W] What I have no clue is how running adb command in windows shell will help me to see it in android studio? The phone is still not visible in android studio. Not after restart. And pairing with android studio also still doesn't work. What am I missing??Straighten
For me it still gave an error "failed to connect to 192.168.1.110:36329" until I connected the device to the computer using a USB cable for the first timeIrina
R
21

Android Studio gives an option to troubleshoot device connection. I was having the same issue then I found this way.

enter image description here

I found in my case I need to restart the ADB, your might be different.

Revelry answered 28/6, 2022 at 8:23 Comment(3)
"restart the ADB" - worked for me.Megdal
This worked, same hereSchoenfelder
Did this, this helped somehow. But still could not connect. router provided from my isp has 2.5G as well as 5G band. for me, simply switching to 2.5G in both of my devices helped.Netta
Q
13

I prefer ADB wifi for wifi adb connection. But for this you must be in same wifi network.

enter image description here

after install this plugin you find it on right side panel as shown below

enter image description here

Now , First time you have to connect it via usb cable and after that Click on connect Click on connect

And That's It. You are connected wirelessly now you can remove cable.

Quimper answered 28/6, 2022 at 11:57 Comment(2)
I like ADB Wi-Fi because it comes with scrcpy <3Andiron
for some reason that worked! even though I tried the documentation of connecting through cmd and adb.exe commandsClinker
P
11

For me, my issue was that on my workstation (Windows 11), my Network profile type under Network & internet > Wi-Fi > {Connected Wi-Fi name} was set to Public Network (Recommeded). Changing this to Private network allowed it to discover my Android device connected on the same network.

Prokopyevsk answered 12/9, 2022 at 12:53 Comment(2)
Thank you so much. This was my problem too. For some reason Windows changes it back to public. For those of you with the same problem: Go to Run –> secpol.msc -> Select Network List Manager Policies -> Double click your desired network, go to Network Location tab. -> Change the Network location type to either Not configured, private or public. Source: social.technet.microsoft.com/Forums/en-US/…Seleucid
Worked, Thank you so much for this great observation.Elishaelision
P
4

What helped in my case was going to Tools -> SDK Manager and on the SDK Platforms tab choosing the Androivd version of my phone. By default in only had "Android API 33" installed. Once I added "Android 11.0 (R)" and restarted the Studio I was able to connect my phone using the QR Code.

SDK Platforms

Pincer answered 22/6, 2022 at 21:3 Comment(1)
Do you need everything or just the 'Android SDK PLatform 30'?Ageold
B
4

In my case: restarted my PC and phone together and was then able to connect via WiFi.

Sometimes the above-mentioned method doesn't work. if it doesn't work, then I restart Android Studio.

To restart Android Studio: first, click 'File' then click 'Invalidate Caches...' then click on the 'Invalidate and Restart' button.

Belgae answered 3/3, 2023 at 8:11 Comment(0)
C
3

Restarting the device helped me

Cortisol answered 4/5, 2022 at 10:21 Comment(0)
I
3

Turning off/on Wifi for both my laptop and phone worked for me.

Involucel answered 25/9, 2022 at 15:34 Comment(1)
I ran into the same situation today and this still worked. I don't understand the downvoteInvolucel
D
2

This is an Android Studio Bug since it does not work reliably.

Make sure you tested these steps Android 11 pairing over WIFI

Make sure your

Ensure that your workstation and device are connected to the same wireless network.

Ensure that your device is running Android 11 or higher. For more informaton, see Check & update your Android version.

Ensure that you have Android Studio Bumblebee. 

On your workstation, update to the latest version of the SDK Platform-Tools.

For the 4th point Sdk Manager> SDK Tools > Android SDK Build Tools

You can use a plugin called ADB WI FI from the plugin marketplace in the meantime.

It does require you to plug your cable once but doesn't require it after that . Also you can pair it with scrcpy to project your screen on your laptop

Duhl answered 4/3, 2022 at 17:25 Comment(1)
I did all these ways, but it still does not workPup
P
2

Finally fixed the issue, for this problem there are multiple solutions as different people may have a different root cause to this issue. I'll just list a checklist on the things needed to pair a device successfully.

  1. Make sure your Android device is Android 11+
  2. Android Studio version must be Bumblebee and above
  3. Configure your Android SDK and download the required SDK tools eg.Android SDK Platform tools (You can do this through Tools->SDK Manager)
  4. Configure your adb correctly (Turns out my adb wasn't being recognised by Android studio Tools -> Troubleshoot Device Connection)
  5. Ensure both devices is connected to the same network. Make sure it is the same IP address and DNS on both devices.

No 4 and No 5 turns out to be the problem to me as my PC was using OpenDNS and a static IP address while my phone was using a dynamic IP address which was different from my PC's IP address.

Prism answered 5/10, 2022 at 15:46 Comment(0)
L
2

Mine was fixed by simply restarting Android Studio.

My speculations are sometimes using different VPNs and maybe proxies aren't predicted by Android Studio team.

Lansquenet answered 27/1, 2023 at 19:21 Comment(1)
The VPN was the Problem, I then had to restart both wifi, from Smartphone & Laptop. Thx a lot !Rashida
S
1

I was facing the same isuue tried every above answers then finally restarted my router and it was working

Serigraph answered 9/8, 2022 at 10:58 Comment(0)
A
1

I tried adb, but it didn't work. What works for me is:

  1. Disconnect wifi on my laptop
  2. On my phone, Setting -> Connections -> Mobile Hotspot and Tethering -> Turn on Mobile Hotspot as well as bluetooth tethering
  3. Connect laptop to phone through mobile hotspot
  4. QR code pairing.
Automatize answered 27/4, 2023 at 12:33 Comment(0)
O
0

check the timezone on your Wi-Fi router, it should match

Orchid answered 29/5 at 5:57 Comment(1)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Ilonailonka
J
0

To Solve this Problem you have to follow the below steps.

  1. go to tools->sdk manager check the Android API 35
  2. go to edit enivironment variables and paster your adb path or platform-tools path 3)after completing the step you have to restart the system. i pasted C:\Users\xyz\AppData\Local\Android\Sdk\platform-tools enter image description here
Jupiter answered 1/7 at 6:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.