Thursday 28 July 2016

How to debug an Android app without using USB in android studio.

Open the terminal(android studio) or cmd.
  • First time  need data cable
  • Go to ADB location inside platform tools.
  • Attach data cable .
  • cmd>  adb devices(press enter)
  • adb tcpip 5555 +enter.
  • Remove cable.
  • Go to phone settings => About Phone => Status => Check IP Address.
  • adb connect IP address:5555

Example: 
  • C:\Users\Laptop>d:
  • D:\>cd AnddroidStudio\platform-tools
  • D:\AnddroidStudio\platform-tools>adb devices
  • List of devices attached
  • 0123456789ABCDEF        device
  • D:\AnddroidStudio\platform-tools>adb tcpip 5555
  • restarting in TCP mode port: 5555
  • D:\AnddroidStudio\platform-tools>adb connect 192.168.1.8:5555

After that connectivity is done(Android phone and Android studio).


May this lines help you. Thanks!!!!!!

No comments:

Post a Comment