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
CodePudding user response:
By following the 7 steps below, your problem will be solved definitely:
- You should add adb to your environment variables. open your environment variable and add Your-SDK=path\platform-tools to environment variables Path.
- In your device open Wireless debugging under developer options.(if developer options not exists in your settings you should activate developer mode)
- in wireless debugging tap on Pair device with pairing code.
- in your Android studio open Terminal and write commands below in terminal.
- adb pair Ip-address:port (get Ip address from dialog below)
- Insert wifi pairing code. (get pairing code from dialog above)
- adb connect IP-address:port (get Ip address & port from dialog below). You've done successfully. congratulations