Run or Debug Android App Wirelessly in Android Studio

0
105
Android studio is the official IDE to create android applications, android studio gives stunning features to develop professional apps. But in the case of debugging in android studio, you have probably notice that the default emulator of android studio is very slow. when it comes to testing our apps it gives headache. Some users install third party softwares like genymotion its fast and high performance method but the disadvantages of genymotion is its not a freeware and it eat lot of our RAM.

android studio wireless debugging

So apart from the above method most of the people use real devices to run or debug android apps, its easy and fast but you need to connect your android phone to your computer. To resolve this problem you can wirelessly debug your android apps with your real android devices as described here.

How To

1. Open your project in Android Studio (Also works in Eclipse…)

2. Connect your Android device and your computer to a common WiFi network
3. Enable USB debugging in your Android device

Settings > More > Developer options > Tick USB debugging


4. Connect your device to the computer with a USB cable
5. Run your project with your connected device
6. Go-to Android SDK folder

C:Program Files (x86)Androidsdkplatform-tools

7. In address bar type CMD and hit enter key

cmd easy shortcut


This opens command prompt with path points to platform-tools
8. Type and hit enter

adb tcpip 5555

This set the Android device to listen for a TCP/IP connection on port 5555
9. Disconnect USB cable from Android device
10. FInd the IP address of your android device, you can find this in your about phone settings page

Settings > More > About device > Status > IP address

IP Address Example : 192.168.1.3
11. In command prompt type and hit enter

adb connect device IP address

adb connect 192.168.1.3
This connects your device
12. Now Run project in Android studio. you can select the connected device to run your project.

Also Read : Android Wireless Data Transfer or Stream

Troubleshooting

1. Check if your device is connected successfully

device IP:5555 device

192.168.1.3:5555 device
2. If any error occurred in any step, then reset your adb device

adb kill-server

then start from the beginning.
3. If you are stuck at restarting in TCP mode port: 5555 
Close the command prompt and start from the beginning.

LEAVE A REPLY

Please enter your comment!
Please enter your name here