Beginning Android Debugging
Find out how to debug your Android apps using the many tools available on Android Studio. Learn how to create log statements, add breakpoints to your code, use the Android Studio profiling tools and much more. By Aldo Olivares.
Learning path
This is part of the Android IDEs & Tools learning path. View path.
Who is this for?
Beginner Android developers who are interested in learning the basics behind debugging with Android Studio. This course expects you to be familiar with Android Studio and Kotlin programming.
Covered concepts
- Android profiling tools
- Layout inspector
- Debugging using Android Studio
- Breakpoint creation
- Log statements
Part 1: Beginning Android Debugging
Learn about all the tools that will help you debug your app such as log statements, the emulator and the layout inspector.
The Android Profiler provides you with real time data that helps you measure how your app uses important resources such as the memory, cpu, network and battery.
In this episode, learn how to use the stack trace to inspect your code and figure out which line of code is causing the app to crash.
Learn how to create log statements using the Log class. Create logs with different levels of importance, such as warnings or errors.
Sometimes bad things will happen and your app will crash. Learn how stack trace helps you navigate to the exact line of code that caused a crash, and how to create different breakpoints to help you inspect your code step by step at runtime.
The layout inspector allows you to display a magnified view of your app and to examine details of your layouts at runtime.
In this episode, learn how to read and create bug reports using the Android emulator.
Debugging an app by yourself is useful, but it is even more useful to get feedback from real-world users. Learn how to get crash reports from your users using reporting features of the Google Play Console.
In this episode, create a new Firebase project and add the appropiate dependencies to your app.
Firebase crashlytics is a lightweight library that gives comprenhensive realtime crash reports in the firebase console. Learn how to add crashlytics to your app and to analyze the information retrieved.