<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/adding-crashlytics-to-a-jetpack-compose-app-thgcvchwa" -->

---
title: Adding Crashlytics to a Jetpack Compose app | daily.dev
description: A step-by-step guide walks through integrating Firebase Crashlytics into an Android app built with Jetpack Compose, part of a series building the 'Make It So'...
canonical: https://daily.dev/posts/adding-crashlytics-to-a-jetpack-compose-app-thgcvchwa
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Adding Crashlytics to a Jetpack Compose app | daily.dev
og:description: A step-by-step guide walks through integrating Firebase Crashlytics into an Android app built with Jetpack Compose, part of a series building the 'Make It So'...
og:url: https://daily.dev/posts/adding-crashlytics-to-a-jetpack-compose-app-thgcvchwa
og:image: https://api.daily.dev/og/posts/tHgcvcHwa.png
og:image:alt: Adding Crashlytics to a Jetpack Compose app
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding Crashlytics to a Jetpack Compose app

**[Firebase](https://daily.dev/sources/firebase-blog)** · 10 min read · 0 upvotes · 0 comments

## Summary

A step-by-step guide walks through integrating Firebase Crashlytics into an Android app built with Jetpack Compose, part of a series building the 'Make It So' sample app. It covers adding the Crashlytics SDK and Gradle plugin, forcing a test crash to verify the integration, and building a LogService abstraction. The guide also shows using CoroutineExceptionHandler within viewModelScope to log non-fatal crashes and display Snackbar messages to users, plus refactoring shared logic into a base MakeItSoViewModel class.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://firebase.blog/posts/2022/06/adding-crashlytics-to-jetpack-compose-app>

## Questions this post answers

### How do I add Firebase Crashlytics to a Jetpack Compose Android app?

Add the Firebase BoM and firebase-crashlytics-ktx dependency to app/build.gradle, apply the com.google.firebase.crashlytics Gradle plugin, and add the crashlytics Gradle plugin classpath (2.9.2) plus google-services classpath (4.3.2+) to the project-level build.gradle. After syncing, crashes are automatically captured and shown in the Firebase Console without further code changes.

_daily.dev surfaces practical Firebase and Android setup guides like this Crashlytics walkthrough._

### How can I log non-fatal exceptions to Crashlytics from a Kotlin coroutine in a ViewModel?

Create a CoroutineExceptionHandler that calls Firebase.crashlytics.recordException(throwable) inside a LogService, then pass that handler to viewModelScope.launch(exceptionHandler). This automatically catches exceptions thrown inside the coroutine, logs them as non-fatal crashes to Crashlytics, and can simultaneously trigger a Snackbar message via a SnackbarManager to inform the user.

_Developers wiring up crash reporting in coroutine-based apps can find similar patterns on daily.dev._

## Similar posts on daily.dev

- [Building an AI Chat App for Android with Jetpack Compose](https://daily.dev/posts/building-an-ai-chat-app-for-android-with-jetpack-compose-qqxuyityi) · Medium · 1 upvotes · 0 comments
- [How to Build Accessible Android Apps with Jetpack Compose: A Comprehensive Guide](https://daily.dev/posts/how-to-build-accessible-android-apps-with-jetpack-compose-a-comprehensive-guide-qgsyi1zxt) · freeCodeCamp · 1 upvotes · 0 comments
- [Migrating to Jetpack Compose: How AI Accelerated Our Journey at Caper](https://daily.dev/posts/migrating-to-jetpack-compose-how-ai-accelerated-our-journey-at-caper-ih6kovw5g) · Instacart · 0 upvotes · 0 comments

---

Tags: [#android](https://daily.dev/tags/android), [#kotlin](https://daily.dev/tags/kotlin), [#jetpack-compose](https://daily.dev/tags/jetpack-compose)

[View this post on daily.dev](https://daily.dev/posts/adding-crashlytics-to-a-jetpack-compose-app-thgcvchwa)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Adding Crashlytics to a Jetpack Compose app","url":"https://daily.dev/posts/adding-crashlytics-to-a-jetpack-compose-app-thgcvchwa","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/adding-crashlytics-to-a-jetpack-compose-app-thgcvchwa"},"datePublished":"2026-08-23T12:21:19.690Z","dateModified":"2026-08-23T12:46:26.836Z","description":"A step-by-step guide walks through integrating Firebase Crashlytics into an Android app built with Jetpack Compose, part of a series building the 'Make It So'...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b964b5dc742fc0bc236a0798a8d824a2?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b964b5dc742fc0bc236a0798a8d824a2?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Firebase","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Firebase","logo":"https://media.daily.dev/image/upload/s--i395oqZH--/f_auto,q_auto/v1787487448/logos/firebase-blog?_a=BAMAMicg0","url":"https://daily.dev/sources/firebase-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/adding-crashlytics-to-a-jetpack-compose-app-thgcvchwa","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"android,kotlin,jetpack-compose","timeRequired":"PT10M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Firebase","item":"https://daily.dev/sources/firebase-blog"},{"@type":"ListItem","position":3,"name":"Adding Crashlytics to a Jetpack Compose app"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/adding-crashlytics-to-a-jetpack-compose-app-thgcvchwa#faq","mainEntity":[{"@type":"Question","name":"How do I add Firebase Crashlytics to a Jetpack Compose Android app?","acceptedAnswer":{"@type":"Answer","text":"Add the Firebase BoM and firebase-crashlytics-ktx dependency to app/build.gradle, apply the com.google.firebase.crashlytics Gradle plugin, and add the crashlytics Gradle plugin classpath (2.9.2) plus google-services classpath (4.3.2+) to the project-level build.gradle. After syncing, crashes are automatically captured and shown in the Firebase Console without further code changes. daily.dev surfaces practical Firebase and Android setup guides like this Crashlytics walkthrough."}},{"@type":"Question","name":"How can I log non-fatal exceptions to Crashlytics from a Kotlin coroutine in a ViewModel?","acceptedAnswer":{"@type":"Answer","text":"Create a CoroutineExceptionHandler that calls Firebase.crashlytics.recordException(throwable) inside a LogService, then pass that handler to viewModelScope.launch(exceptionHandler). This automatically catches exceptions thrown inside the coroutine, logs them as non-fatal crashes to Crashlytics, and can simultaneously trigger a Snackbar message via a SnackbarManager to inform the user. Developers wiring up crash reporting in coroutine-based apps can find similar patterns on daily.dev."}}]}
```

