Posts

Showing posts with the label Android Studio Logcat Explained

Android Studio Logcat Explained

Image
Introduction: Hey guys, so many of you seem to not use Logcat properly, so here is a post on how you can use Logcat and how you can solve your errors with it. Hope it helps.  What is Logcat? The  Logcat  window in Android Studio displays system messages, such as when a garbage collection occurs, and messages that you added to your app.  When an app throws an exception, Logcat shows a message followed by the associated stack trace containing links to the line of code. View your app logs: To display the log messages for an app: Build and run your app  on a device. Click  View > Tool Windows > Logcat  (or click  Logcat  in the tool window bar). By default, Logcat displays just the log messages for your app running on the device The Logcat toolbar provides the following buttons: 1. Clear logcat   : Click to clear the visible log. 2. Scroll to the end   : Click to jump to the bottom of the log and see the latest log messages. If yo...