This is part of the Android IDEs and 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.
- Android profiling tools
- Layout inspector
- Debugging using Android Studio
- Breakpoint creation
- Log statements
Part 1: Beginning Android Debugging
Debug on Android
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.
Use the Stack Trace
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.
Create a Bug Report
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.
Set Up Firebase
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.