# Google Crashlytics is not providing useful NDK crash reports

**URL:** <https://forum.juce.com/t/google-crashlytics-is-not-providing-useful-ndk-crash-reports/34649>\
**Category:** Android\
**Created:** [August 3, 2019, 8:27pm UTC](https://forum.juce.com/t/google-crashlytics-is-not-providing-useful-ndk-crash-reports/34649 "2019-08-03T20:27:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nckbrzg](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@nckbrzg](https://forum.juce.com/u/nckbrzg)\
**Post date:** [August 3, 2019, 8:27pm UTC](https://forum.juce.com/t/google-crashlytics-is-not-providing-useful-ndk-crash-reports/34649/1 "2019-08-03T20:27:12Z")

</div>

I am writing a JUCE app for mobile (both Android and iOS), and would really like to have some kind of crash analytics in place so that I can provide better support to my users. However, I have hit a snag with Android (I have not yet tried setting it up for iOS yet).

Before I go any further though, I would just like to say that I know that JUCE has an analytics module, as well as [a tutorial on how to use it with Google Analytics](https://docs.juce.com/master/tutorial_analytics_collection.html). However, from my understanding, Google has recently acquired [fabric.io](http://fabric.io)’s Crashlytics (which is now also known as [Firebase Crashlytics](https://firebase.google.com/docs/crashlytics/)) and Google Analytics is on shaky (if not soon to be deprecated) ground ([see this JUCE forum post](https://forum.juce.com/t/analytics-for-plugins-rip-google-analytics-sdk/31268)). I was also not able to follow the tutorial, as it asks for a Google “[Tracking ID](https://docs.juce.com/master/tutorial_analytics_collection.html#tutorial_analytics_collection_api_key)” this just does not seem to be a thing anymore (or perhaps ever) for Google’s Firebase platform.

Also, given the relative ease in which I was able to install Crashlytics (this involved changing a few config files and 0 lines of code) vs. the multiple steps involved in the JUCE analytics tutorial just to get Goolge Analytics (a platform which is, at best, approaching its sunset) does not make me very interested in this approach. Not to mention, it seems that I am _ **so close** _ to getting Crashlytics to work.

That being said, I have successfully [installed Crashlytics](https://firebase.google.com/docs/crashlytics/get-started?platform=android) in the app and verified that it can report crashes. I have also followed the instructions in the [“Get Android NDK crash reports” guide](https://firebase.google.com/docs/crashlytics/ndk-reports?authuser=0). In the C source of the app, I wrote code that forces a crash when a button is clicked. After building my app, I ran the `./gradlew crashlyticsUploadSymbolsRelease` command, as the guide instructs. After running the app and clicking the button, the app crashes as expected. It also reports the crash to Crashlytics, as expected (see screenshot). However, there is no useful information provided in Crashlytics, with each entry of the stack trace marked as “(Missing)”. See the screenshot below.

 ![firebase_crashlytics](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/d/d3dee04ffcf8c68ec97b1364aa7e11522e9ab0af.png)

I have been exchanging emails with Google’s Firebase support team, and what they have said so far is

> … we aren’t getting your symbol files (NDK [https://docs.fabric.io/android/crashlytics/ndk.html#using-gradle](https://docs.fabric.io/android/crashlytics/ndk.html#using-gradle)), and therefore we don’t have the full set of information needed to display stack traces in plain text.

They then asked me to provide additional information …

> ```
> How stripped binaries are built and packaged?
> 
> How debug binaries are built (if at all)?
> 
> Whether the binaries are being built as part of the Android app build or separately?
> 
> What tools are being used to generate the binaries?
> 
> Minimal repro that I can run locally (i.e. MCVE).
> 
> A copy of your Gradle file.
> 
> Have you migrated your app from Fabric to Firebase project, just to isolate migration issue?
> 
> ```

When I provided as much of this information as possible and explained to them that I am using JUCE, the response I got back was

> Let me confirm this with the team, if this is a supported combination of our products. I’ll keep you posted.

That was about 4 or 5 days ago now. I figure while I am waiting, I might as well throw the question out here too.

Can anyone help me?

---

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [August 4, 2019, 1:16pm UTC](https://forum.juce.com/t/google-crashlytics-is-not-providing-useful-ndk-crash-reports/34649/2 "2019-08-04T13:16:21Z")

</div>

Hi - Microsoft’s AppCenter supports NDK-based crash reporting. We’re using it in Wotja (which is JUCE-based on Android). I hope that helps you! Pete

---

<div class="post-metadata">

**Author:** ![adamvietnam](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@adamvietnam](https://forum.juce.com/u/adamvietnam)\
**Post date:** [November 16, 2020, 5:30pm UTC](https://forum.juce.com/t/google-crashlytics-is-not-providing-useful-ndk-crash-reports/34649/3 "2020-11-16T17:30:49Z")

</div>

Hi, did you get anywhere with this - I’m facing similar issues?

---

<div class="post-metadata">

**Author:** ![adamvietnam](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@adamvietnam](https://forum.juce.com/u/adamvietnam)\
**Post date:** [December 20, 2020, 5:16pm UTC](https://forum.juce.com/t/google-crashlytics-is-not-providing-useful-ndk-crash-reports/34649/4 "2020-12-20T17:16:41Z")

</div>

I solved this in the end if anyone is interested :

> [@\[SOLVED\] Does anyone have Firebase Crashlytics successfully logging NDK crashes](https://forum.juce.com/t/does-anyone-have-firebase-crashlytics-successfully-logging-ndk-crashes/42785):
>
> I’ve used Crashlytics in other projects so am reasonably familiar with it. For my JUCE project, I have setup Crashlytics following the relevant guides for [Installing Crashlytics](https://firebase.google.com/docs/crashlytics/get-started?platform=android) and enabling [NDK](https://firebase.google.com/docs/crashlytics/ndk-reports?authuser=0) crash monitoring. Also from this forum I checked out: When I run up my app in Android Studio, Crashlytics seems to start up okay: 2020-11-17 17:23:11.361 19708-19708/com.cburn.revdesktop I/FirebaseCrashlytics: Initializing Crashlytics 17.3.0 2020-11-17 17:23:11.457 19708-19730/com.cburn.revdesktop…
