60

I have used Android Studio Bumblebee's latest function (Wifi pairing) for 2 - 3 days before it stopped working.
I am now receiving the error "This system does not meet the requirements to support Wi-Fi pairing. Please update to the latest version of "platform-tools" using the SDK manager"

I have updated everything to the latest version.

Screenshot of the error message

Adinia
  • 3,722
  • 5
  • 40
  • 58
Santript Mehta
  • 707
  • 1
  • 5
  • 7
  • I have already tried to reinstall the Android platform tools. And also added the path variable. But still, I am facing the same issue. – Santript Mehta Feb 08 '22 at 17:01
  • 1
    spent 3 days trying to figure out this, turns out, adb tries to spin up a mdns server on port 5353 and doesn't do any proper error reporting failing that. there is a default windows service that uses that port (don't know if it always uses it or just bad luck) called DNScache, so finding a way to change the port that this service uses or the adb port sould fix it, but i got no luck doing that – Luan Vitor Mar 03 '22 at 18:32
  • I just restarted my system to fix this issue – Ishaan Garg Mar 04 '22 at 13:09
  • I tried every one for your suggestions. But I am still facing this issue. – Santript Mehta Mar 11 '22 at 15:15

13 Answers13

124

I had a similar problem and managed to solve it the following way:

Quick fix

  1. In Android Studio, File -> Settings
  2. Build, Execution, Deployment -> Debugger
  3. Under Android Debug Bridge (adb), uncheck 'Enable adb mDNS for wireless debugging' and Apply
  4. Wait some seconds for changes to take effect
  5. Recheck 'adb mDNS for wireless debugging' and Apply
  6. On the pop-up window from Windows Defender, allow network access to adb

Extended sollution
By checking the Android Studio logs (Help -> Show Log in Explorer) you can find an error message regarding the adb mDNS daemon.

INFO - ireless.WiFiPairingServiceImpl - 'adb mdns check' (not supported) result:
INFO - ireless.WiFiPairingServiceImpl - ERROR: mdns daemon unavailable
INFO - ireless.WiFiPairingServiceImpl - Checking if mDNS is supportState result: NotSupported

If you run that command in e.g. Powershell (adb mdns check) you will see that you get the exact same error message. After some research I found out you could disable this mDNS service in the Andoid Studio settings.

  1. File -> Settings
  2. Build, Execution, Deployment -> Debugger
  3. Under Andoird Debug Bridge (adb), uncheck 'Enable adb mDNS for wireless debugging'
  4. Hit apply
  5. Recheck 'adb mDNS for wireless debugging'
  6. Hit apply

Now a pop-up window should appear asking you to allow adb network access. Click on allow access.
Wi-Fi pair should work now.

See also: Pairing new device on Android Studio BumbleBee over Wifi

Wout Rombouts
  • 1,479
  • 2
  • 9
  • 15
  • 4
    This did not work for me because I already had ADB added for my inbound connections. I had to manually add adb.exe to my outbound settings in Windows Defender. It worked after that. – Sleewok Feb 24 '22 at 14:56
  • 2
    Worked for me, though I had to restart Android Studio for the QR code to work. – Lee Denbigh Mar 24 '22 at 05:16
  • 1
    It worked on my Linux machine, (I'm using Manjaro-GNOME env) but there was no prompt to allow permission, this acquired permission automatically once I unchecked and checked the option again. – Pathik Patel Jun 10 '22 at 07:37
  • 3
    Now I have `connection to device that takes up to 2 minutes` and it fails after some time – user924 Jun 13 '22 at 11:17
  • This worked for me after following the steps and restarting the studio – Tonnie Jun 23 '22 at 05:06
  • This worked for me without restarting anything. Instantly worked! :) – DJA Sep 14 '22 at 05:34
  • Excellent solution. It saved my lot of time. By just uncheck and checking the adb mDNS my problem resolved. – Sabir Syed Oct 07 '22 at 16:55
  • This worked for me with Android Studio Dolphin on Fedora 36. Uncheck and recheck the adb mDNS option. No restart required. – Chris Njuguna Oct 19 '22 at 18:04
  • Thanks a bunch. It worked for me straight away. – ocbit Oct 28 '22 at 03:24
  • In my case (Windows 11) - Dolphin studio, i must check use mDNS instead of uncheck, but it helps. So thanks for hint. – mtrakal Oct 31 '22 at 08:15
20

I had to set the environment variable ADB_MDNS_OPENSCREEN to 1.

Here's my PowerShell code:

$env:ADB_MDNS_OPENSCREEN=1
adb kill-server
adb start-server

This is because MDNS is disabled by default in v 31.0.2: https://source.android.com/devices/automotive/virtualization/tools

Rashi Abramson
  • 1,127
  • 8
  • 16
9

Worked for me --> I tried below steps,

  1. unistall previous installed platform-tools and install again
  2. uncheck and check again in Android Studio Sesttings -> Build, Execution, Deployment -> Debugger -> 'Enable adb mDNS for wireless debugging' then apply
  3. Invalid caches in File then check all checks then click on 'Invalidate caches and Restart'
Karthik Kompelli
  • 2,104
  • 1
  • 19
  • 22
  • Just unchecking/apply and rechecking/apply was all that was needed on my machine. Would never have found the mDNS option! – ppareit Apr 13 '23 at 14:13
6

My guess is that you have an old version of platform-tools/adb installed somewhere (you can verify this by running which adb in your command prompt).

Find the right platform-tools

You can find the pathway to the platform-tools/adb you want to use in Android Studios under Settings -> Appearance & Behavior -> System Settings -> Android SDK. enter image description here

Inside of this folder should be another folder called "platform-tools". enter image description here

Update your PATH

You'll want to add this folder to your PATH and remove the old one.

enter image description here

Restart Android Studio

For the changes to take effect, you'll need to restart the IDE.

File -> Invalidate Caches -> Invalidate and Restart

Another Solution

If the above doesn't work, you can also uninstall and reinstall platform-tools using the sdkmanager command.
sdkmanager --uninstall "platform-tools"

Once platform-tools is uninstalled, you can use the SDK Manager in Android Studio to reinstall.

Code on the Rocks
  • 11,488
  • 3
  • 53
  • 61
6

File > Invalidate Caches... worked for me:

Android Studio File menu

Select Invalidate and Restart: Invalidate Caches window

Sdghasemi
  • 5,370
  • 1
  • 34
  • 42
3

If your PC has a wifi adapter, disable it. Fixed it for me.

I just updated windows 10 to 20H2 and whatever recent service pack it's been asking for, for months. I think it re-enabled my wifi adapter, or did something to break adb mdns.

Anyways, none of these suggestions worked. Hopefully this saves someone 2 hours.

jfaron
  • 139
  • 3
  • 7
3

I have same issue , but i downloaded "ADB Wi-Fi" plugin and it works perfectly for Wi-Fi pairing.

Shivam Tiwari
  • 131
  • 1
  • 4
3

To solve this, you can view this solution on Youtube https://www.youtube.com/watch?v=BmetRGkmH6g or

  • go to your Android studio
  • settings
  • head to debugger untick ADB mDNS and apply
  • then head back and tick the ADB and try running again, that should work.
oriohac
  • 187
  • 1
  • 8
2

if your PC have wireless ADAPTER like TP-LINK and there is no cable to the router. this will broken the connection. I solved this issue with:

  1. Create A hospot in your phone
  2. connect your pc to the phone hotspot instead.
  3. then use pairing with code (on your phone)
  4. input in android studio terminal : adb pair <ipaddress-pair>:<port-pair>
  5. input password
  6. adb connect <ipaddress-connect>:<port-connect>

maybe this will save your 2 hours

Gökhan Mete ERTÜRK
  • 3,378
  • 2
  • 19
  • 23
Sayyid J
  • 1,215
  • 1
  • 4
  • 18
1

One solution is to restart your PC after you have updated everything. this may restart ADB server totally.

S.A.Parkhid
  • 2,772
  • 6
  • 28
  • 58
0

I tried all suggested steps, which were well explained but unfortunately didn't solve the problem for me. I found out that by disabling the network adapter for my NordVPN, the issue suddenly disappeared. If you are using Windows, I'd suggest you check if you have any network adapter which could be disabled.

You can enter this path (Control Panel\Network and Internet\Network Connections) in your top bar of the Control Panel if you would not like to click through some steps, otherwise just follow these steps:

  1. Go to "Control Panel" in Windows
  2. Click on "Network and Internet"
  3. Click on "Network and Sharing Center"
  4. Click on "Change adapter settings"
  5. Right-mouse click on any adapter you wish to disable

After these changes, check your Android Studio to see if disabling the adapter solved your problem.

Jason
  • 1,658
  • 3
  • 20
  • 51
0

Check your firewall and ALLOW to incoming and outgoing traffic.

Hope it's helpful! :)

Idan Cohen
  • 104
  • 2
-1

Just try using terminal with as normal as before just change adb to .\adb and connect your device with wireless debugging...