I have try to use android wifi debugging with some Android Studio Plugins.But it is not worked for me.some errors preventing the connection.Then i realize your mobile phone and android Studio can connect Directly using wifi .With out using any third party Plugin.
It is simple and easy let’s get started the tutorial.
ADD ADB path to System Variable
if your adb path is not in system variables ,Then it show error “adb is not recognized as internal or external command” so lets add adb to system path.
1.Go to folder option and select view show hidden files folders and drives and Apply and Ok
2.Then go to C:\Users\YOUR_USER_NAME_HERE\AppData\Local\Android\Sdk\platform-tools. There is located adb executable file so copy the address bar
3.Then go to This PC and right click and go to properties
4.Go to Advanced System Settings
5.Go to Environmental variable and select path and press Edit
6.Then press New then it will give new line paste your android SDK Tools path there
That’s it now system can identify the adb command.
Create Simple Hello World App and debug using WIFI
Create Hello World App and Connect your mobile Device to Laptop using USB cable.
On your wifi and connect laptop and mobile phone to same wifi network
Open Command prompt and type . To check what devices connected to lap top
your phone have enabled developer options to do this.when usb is connected some times it will ask permission to usb debugging
Then you have to allow the permission and then type
adb tcpip 5555
Then some time again ask the permission as above
Then open your mobile(I’m using Huawei y6 2) and go to Settings and WIFI ->menu ->Advanced Settings ->and check what is the IP address there mine is 192.168.1.100
Then type in your terminal
adb connect 192.168.1.100:5555
Some time if authenticate failed then allow debugging permission on your mobile then it will connect.Now Disconnect usb cable from lap top and press Run app button in Android Studio .it will show your android device connected via WIFI as active device then you have to select it and run .
If there is any problem then try
command and start over again.I think this tutorial will help you.if you like this tutorial please share with your friends. Happy Coding
Search Key Words