I am having trouble enabling wireless debugging in Android Studio. In fact when I select "Pair Devices using Wi-Fi", I get an almost instant error with the very general (useless) message "unexpected error during Wi-Fi pairing initialization". I was very surprised being that I was unable to find any posts or pages when googling for that specific message!
Android Studio provides a "learn more" link that opens up this page and is basically useless—it describes basic steps which I will copy below. I can't find any logs or more specific error messages. I tried rebooting the PC, restarting Android Studio, turning off any firewalls/anti virus, trying with phone plugged in (USB debugging works fine, I can load apps to the phone when plugged in no problem), ADB restart, updated Android Studio and SDK platform tools. Nothing changes; it is the same message (see the screenshot at the bottom).
What bugs me is that because the error message pops up almost instantly, the whole "service" seems to be unable to start completely. I have researched extensively, but most errors are quite specific and deal with network/IP issues or pairing problems, etc.—but all those are after some initial steps do take place.
I am running Android Studio 15 (Dolphin) | 2021.3.1.
I have a Samsung s21FE running Android 12 (although I don't think that is even relevant, it never starts looking for devices anyway).
I have followed all steps in relevant guides, for example here, namely:
The error I see is this:
I solved it by following a suggestion from the comments submitted on this post. See below.
Try upgrading the SDK Platform tools in menu Tools → SDK Manager → SDK Tools.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With