Skip to content

Android runtime 6.1.1 + latest Firebase (10.0.0) + Crashlytics is crashing the app #1489

@NickIliev

Description

@NickIliev

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: latest
  • Cross-platform modules: 6.1.1
  • Android Runtime: 6.1.1
  • Plugin(s): nativescript-plugin-firebase@10.0.0

Describe the bug
Using the latest CLI, Android runtime and Firebase plugin are causing a runtime error related to a Crashlytics library coming from nativescript-plugin-firebase. The error is present only when the library is explicitly disabled via firebase.nativescript.json

To Reproduce

The crash is happening when Crqashlytics is enabled
firebase.nativescript.json

{
    "external_push_client_only": false,
    "using_ios": true,
    "using_android": true,
    "firestore": false,
    "realtimedb": false,
    "authentication": true,
    "remote_config": false,
    "performance_monitoring": false,
    "messaging": true,
    "crashlytics": true,
    "crash_reporting": false,
    "storage": false,
    "functions": false,
    "facebook_auth": true,
    "google_auth": true,
    "admob": false,
    "invites": false,
    "dynamic_links": false,
    "ml_kit": false
}

Error:
App not responding (and directly closing thus killing the CLI live sync and outputing any info) or outputting a runtime error about MLKit library (never used and not enabled perhaps CLI issue with Android native dependencies)

Note: Removing the crashlytics from the build process is "resolving" the issue.

Expected behavior
Not to crash

Sample project

Or use any other projects that uses nativescript-plugin-firebase and Crashlytics

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions