Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Unable to use Crashlytics on Android tns >6.1.0 < tns.next, app crashes on load, sits on splash screen and emulator eventually times out #1464

Closed
Ianc22 opened this issue Nov 5, 2019 · 3 comments

Comments

@Ianc22
Copy link

Ianc22 commented Nov 5, 2019

Hey @EddyVerbruggen

I've done some more digging and found the following, This issue went un noticed for months, it was only when having to clone the project when the issue became apparent.

So, upgraded to android tns 6.1.1 about a month ago and 6.1.2 soon after and obviously had the app running all through that time.

It turns out, having platforms prepared on 6.1.0 and then upgrading to >6.1.1 there are no issues. I've tried tns prepare --force after the upgrades and still it runs without issue.

As soon as I remove platforms though and re build on >6.1.1 we have the behavior pointed out in this issue...

And to confirm still crashlytics...

Hope that helps!

Originally posted by @Ianc22 in #1425 (comment)

@Ianc22 Ianc22 changed the title Hey @EddyVerbruggen Unable to use Crashlytics on Android tns >6.1.0, app crashes on load, sits on splash screen and emulator eventually times out Nov 5, 2019
@Ianc22
Copy link
Author

Ianc22 commented Nov 5, 2019

Another thing I've tried is using {N} Gradle hooks, in particular buildscript.gradle

https://docs.nativescript.org/core-concepts/android-runtime/advanced-topics/gradle-hooks#buildscriptgradle

Initially, when running prepare the build.gradle created in platforms looks like so

image

Below is the results after prepare, as you can see firebase.build.gradle is overwriting both my google services and fabric versions in build.gradle, am I missing something ?! :P

image

@Ianc22
Copy link
Author

Ianc22 commented Nov 5, 2019

OK so seems a CLI issue,

This fixed it for me!

    "tns-android": {
        "version": "6.3.0-2019-10-22-105535-01"
    }

NativeScript/nativescript-cli#5031 (comment)

@Ianc22
Copy link
Author

Ianc22 commented Nov 5, 2019

Still, would be nice to sort out gradle.build if you have any thoughts?

@Ianc22 Ianc22 closed this as completed Nov 5, 2019
@Ianc22 Ianc22 changed the title Unable to use Crashlytics on Android tns >6.1.0, app crashes on load, sits on splash screen and emulator eventually times out Unable to use Crashlytics on Android tns >6.1.0 < tns.next, app crashes on load, sits on splash screen and emulator eventually times out Nov 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant