0

I have configured the wifi debugging using Pair Code and it's paired Successfully. In android studio also it is showing my device. When I run the Application, it is always stuck with " Waiting for all target devices to come online"

Mobile I used to connect - Nokia - Android 12

Android studio wifi debugging

Android 12 Nokia - Wifi Debugging - Not working

Saranya Subramanian
  • 417
  • 1
  • 5
  • 19

1 Answers1

0

As a precaution, make sure Developers option and wireless debugging are enabled and you have latest SDK platform tools installed:-

  1. Goto Sdk manager > SDK Platforms > check "show package details" (at bottom right corner.)

  2. Expand the latest stable Android release (currently Tiramisu) > and check Android SDK platform (currently 33) if not already checked/ installed.

  3. Hit apply and allow the installation to complete if needed.

Fix 1

  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.

Try pairing again, if it doesn't work or you may get An error accoured connecting device... Try the next Fix.

Fix 2

Try disabling any (virtual) network adapters for VPNs or VMs (virtual machines).

These steps are for Windows, there maybe a Mac equivalent of this so try that, and if Macs do not have virtual adapters. Try the next fix.

You can enter this path (Control Panel\Network and Internet\Network Connections) in your top bar of the Control Panel, 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.

Fix 3

  1. Goto your Android/sdk/platform-tools folder.

For Windows, the default location is: C:\Users\[User]\AppData\Local\Android\Sdk\platform-tools (but like me you may have moved the folder around, so check that.)

  1. Open the cmd or Terminal (mac) there.
    • In windows you can do this by clicking the folder path in adress-bar of windows explorer, and typing cmd and hitting enter there.
    • Alternatively, you can do this by opening terminal anywhere and typing cd [path to platform-tools directory on your PC]

If your PC appers under PAIRED DEVICES on your android, then skip to step 6, else

  1. Find your IP address, port number, and pairing code by selecting Pair device with pairing code. Take note of the IP address, port number, and pairing code displayed on the device.

  2. On terminal you opened, run adb pair ipaddr:port. Use the IP address and port number from above.

  3. When prompted, enter the pairing code, as shown here

*P.S: these steps are also avilable here from google, but for some reason they didn't mention the steps above.

  1. After your device is sucessfully paired, run adb connect ip:port. the ip:port that is visible in the main page of Wireless debugging here.

With This, hopefully the device will be connected.

If any of these meethods helped you, please consider upvoting, I am new here and need some reps to upvote other answers and make comments.

Sources

AbdulAhad
  • 1
  • 1