Gathering logs with Android Studio

Install Android Studio

1-studio.png 

  • Run the Android Studio installer.

Install JDK

2-studio.png

  • Run the JDK installer.

Create a System Variable

  • Select Start.
  • Right-click Computer, and select Properties.
  • Select Advanced System Settings.
  • Select Environment Variables.

3-studio.png

  • Under System Variables, select New.
  • For Variable Name, enter “JAVA_HOME” (no quotes).
  • For Variable Value, enter the path to the JDK top-level folder (e.g. “C:\Program Files\Java\jdk1.8.0_25” (no quotes)).

4-studio.png

  • Select OK to exit the Environment Variables screen.
  • Select OK to exit the Advanced System Settings screen.

Install Device Drivers

Device-specific drivers will need to be installed on your PC in order to properly interface with the device. Generally these drivers can be installed from the manufacturer’s website, but an example of downloading the drivers for the Samsung Galaxy S3s (SGL-T999L) is provided below.

  • For T-Mobile Samsung Galaxy S3s (SGL-T999L), navigate to http://www.samsung.com/us/support/owners/product/SGH-T999ZWATMB.
  • Under Manuals and Downloads, click the Download (EXE) link for “USB (Driver) ver.1.5.45.0 - Win XP/Vista/Win 7/Win 8/Win 8.1 (32bit,64bit) (EN, 15.27 MB)”.
  • For other devices, please download the respective drivers from the manufacturer’s website.

5-studio.png

  • Run the installer.

Enable USB Debugging

  • Enable Developer Options if this is already not enabled:
  • Navigate to Settings -> About Device/Phone.
  • Tap Build Number 7 times to enable Developer Options.
  • Navigate to Developer Options (Settings -> Developer Options).

6-studio.png

  • Check the option that reads “USB Debugging”.

 7-studio.png

 

Actually Gather Logs

  1. Plug your device into your computer. Accept any trust messages that come up.
  2. Open Android Studio.
  3. Navigate to Tools -> Android Device Monitor.
  4. Select your device in the upper left-hand  panel.
  5. Select LogCat  in the bottom panel.
  6. If everything was configured properly, Android Studio should now be collecting logs from your device via ADB.

 8-studio.png

  

Have more questions? Submit a request

0 Comments

Article is closed for comments.