Gathering logs with Android Studio

Install Android Studio


  • Run the Android Studio installer.

Install JDK


  • Run the JDK installer.

Create a System Variable

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


  • 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)).


  • 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
  • Under Manuals and Downloads, click the Download (EXE) link for “USB (Driver) ver. - 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.


  • 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).


  • Check the option that reads “USB Debugging”.



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.



Have more questions? Submit a request


Article is closed for comments.