IMPORTANT: In July 2025, we stopped releasing new versions of KTX modules, and we removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the previously released KTX modules, we recommend that you
migrate your app to use KTX APIs from the main modules instead. For details, see the
FAQ about this initiative.
Stay organized with collections
Save and categorize content based on your preferences.
com.google.firebase.crashlytics
Classes
Extension functions summary
Unit |
Records a non-fatal report to send to Crashlytics with additional custom keys
|
Unit |
Associates all key-value parameters with the reports
|
Extension properties summary
Extension functions
Extension properties
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-21 UTC.
[null,null,["Last updated 2025-07-21 UTC."],[],[],null,["# com.google.firebase.crashlytics\n===============================\n\nClasses\n-------\n\n|-------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CustomKeysAndValues](/docs/reference/kotlin/com/google/firebase/crashlytics/CustomKeysAndValues) | Helper class which handles the storage and conversion to strings of key/value pairs with heterogeneous value types. |\n| [CustomKeysAndValues.Builder](/docs/reference/kotlin/com/google/firebase/crashlytics/CustomKeysAndValues.Builder) | |\n| [FirebaseCrashlytics](/docs/reference/kotlin/com/google/firebase/crashlytics/FirebaseCrashlytics) | The Firebase Crashlytics API provides methods to annotate and manage fatal crashes, non-fatal errors, and ANRs captured and reported to Firebase Crashlytics. |\n| [KeyValueBuilder](/docs/reference/kotlin/com/google/firebase/crashlytics/KeyValueBuilder) | Helper class to enable convenient syntax in [setCustomKeys](/docs/reference/kotlin/com/google/firebase/crashlytics/package-summary#(com.google.firebase.crashlytics.FirebaseCrashlytics).setCustomKeys(kotlin.Function1)) and [recordException](/docs/reference/kotlin/com/google/firebase/crashlytics/package-summary#(com.google.firebase.crashlytics.FirebaseCrashlytics).recordException(kotlin.Throwable,kotlin.Function1)) |\n\nExtension functions summary\n---------------------------\n\n|------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [FirebaseCrashlytics](/docs/reference/kotlin/com/google/firebase/crashlytics/FirebaseCrashlytics)`.`[recordException](/docs/reference/kotlin/com/google/firebase/crashlytics/package-summary#(com.google.firebase.crashlytics.FirebaseCrashlytics).recordException(kotlin.Throwable,kotlin.Function1))`(` ` throwable: `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`,` ` init: `[KeyValueBuilder](/docs/reference/kotlin/com/google/firebase/crashlytics/KeyValueBuilder)`.() `-\u003e` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) `)` Records a non-fatal report to send to Crashlytics with additional custom keys |\n| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [FirebaseCrashlytics](/docs/reference/kotlin/com/google/firebase/crashlytics/FirebaseCrashlytics)`.`[setCustomKeys](/docs/reference/kotlin/com/google/firebase/crashlytics/package-summary#(com.google.firebase.crashlytics.FirebaseCrashlytics).setCustomKeys(kotlin.Function1))`(init: `[KeyValueBuilder](/docs/reference/kotlin/com/google/firebase/crashlytics/KeyValueBuilder)`.() `-\u003e` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)` Associates all key-value parameters with the reports |\n\nExtension properties summary\n----------------------------\n\n|---------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [FirebaseCrashlytics](/docs/reference/kotlin/com/google/firebase/crashlytics/FirebaseCrashlytics) | [Firebase](/docs/reference/kotlin/com/google/firebase/Firebase)`.`[crashlytics](/docs/reference/kotlin/com/google/firebase/crashlytics/package-summary#(com.google.firebase.Firebase).crashlytics()) Returns the [FirebaseCrashlytics](/docs/reference/kotlin/com/google/firebase/crashlytics/FirebaseCrashlytics) instance of the default [FirebaseApp](/docs/reference/kotlin/com/google/firebase/FirebaseApp). |\n\nExtension functions\n-------------------\n\n### recordException\n\n```\nfun FirebaseCrashlytics.recordException(\n throwable: Throwable,\n init: KeyValueBuilder.() -\u003e Unit\n): Unit\n```\n\nRecords a non-fatal report to send to Crashlytics with additional custom keys \n\n### setCustomKeys\n\n```\nfun FirebaseCrashlytics.setCustomKeys(init: KeyValueBuilder.() -\u003e Unit): Unit\n```\n\nAssociates all key-value parameters with the reports\n\nExtension properties\n--------------------\n\n### crashlytics\n\n```\nval Firebase.crashlytics: FirebaseCrashlytics\n```\n\nReturns the [FirebaseCrashlytics](/docs/reference/kotlin/com/google/firebase/crashlytics/FirebaseCrashlytics) instance of the default [FirebaseApp](/docs/reference/kotlin/com/google/firebase/FirebaseApp)."]]