Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem with pairing device using wifi in android studio

I want to pair my android device by scanning QrCode in device manager android studio.

Sometime it works but often it doesn't work.

when I scan QrCode it waits in state below

I try ways below:

1- Connecting to same wifi

2- Deleting all previous paired devices

3- Try to connect using pairing with code

4- Reseting android studio

and all solutions offered in stack

enter image description here

like image 825
mohamadreza navab Avatar asked Nov 30 '25 12:11

mohamadreza navab


2 Answers

By following the 7 steps below, your problem will be solved definitely:

  1. You should add adb to your environment variables. open your environment variable and add Your-SDK=path\platform-tools to environment variables Path.
  2. In your device open Wireless debugging under developer options.(if developer options not exists in your settings you should activate developer mode)
  3. in wireless debugging tap on Pair device with pairing code.
  4. in your Android studio open Terminal and write commands below in terminal.
  5. adb pair Ip-address:port (get Ip address from dialog below)

  1. Insert wifi pairing code. (get pairing code from dialog above)
  2. adb connect IP-address:port (get Ip address & port from dialog below). You've done successfully. congratulations

enter image description here

like image 174
Morteza Allahyari Avatar answered Dec 03 '25 06:12

Morteza Allahyari


I had a problem like it. Now I use Android Studio Dolphin, WiFi connection works well. Also In Windows Task Manager you can kill adb.exe and try connect your device again.

like image 38
Ruslan Avatar answered Dec 03 '25 07:12

Ruslan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!