question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Message: "Crashlytics could not find NDK build tasks on which to depend."

See original GitHub issue

Describe your environment

  • Android Studio version: 4.0
  • Firebase Component: Crashlytics, firebase-crashlytics-gradle plugin
  • Component version: 2.2.0

Describe the problem

The problem with specifying NDK library paths was helpfully fixed as part of issue #1199; however, the new version 2.2.0 of the firebase-crashlytics-gradle plugin now produces this message:

Crashlytics could not find NDK build tasks on which to depend. You many need to manually enforce task dependencies for generateCrashlyticsSymbolFileFlavorAmazonRelease

The message does not stop the build, but there is also no indication of whether there is a significant problem or not. I suspect the message is due to the NDK being part of a Gradle/Android subproject, and not the “:app” project itself.

Steps to reproduce:

./gradlew app:uploadCrashlyticsSymbolFileBUILD_VARIANTreproduces the “could not find NDK build tasks” message.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:14
  • Comments:18 (1 by maintainers)

github_iconTop GitHub Comments

11reactions
ivanuschakcommented, Jul 19, 2020

Hi @kevinkokomani, @MassimoMessore,

Just wanted to confirm I’m facing the same issue as Massimo. I have similar Android Studio project and native libraries built separately from this project (also using NDK r17c), libraries are placed in two folders (stripped(release libs) and unstripped(debug libs)), which are pointed in the application build.gradle file (unstrippedNativeLibsDir and strippedNativeLibsDir properties). I’m building the project in Debug mode, so the uploadCrashlyticsSymbolFileDebug task is performed successfully (there is no warnings/errors) and also I checked that all the *.cSYM files are successfully uploaded to the firebase during this task execution. I tried to use different ‘firebase-crashlytics-ndk’ versions (17.0.0-beta, 17.0.1 and 17.1.1), but eventually I always have ‘missing symbols’ in crash report stack trace in the firebase console. I double checked the settings related to firebase and assured that everything set up in accordance with the crachlytics-ndk documentation. Of course there may be a mistake in my configuration, but I double checked everything and currently for me it looks like a bug in firebase.

Best Regards, Nikolay

3reactions
antonkovalyov351commented, Aug 3, 2020

I had same issue with missing stacktrace and this what I received from support:

…try to add the following information to your AndroidManifest.xml file and see if this will resolve the issue:

<application
    android:extractNativeLibs="true"'
    ...
</application>

Note that this may increase the size of the final binary at the end of the build by a little. …

I have tried it and it worked. At least for stack entries which belong to my own native code. Hope this will help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get Android NDK crash reports | Firebase Crashlytics - Google
Get Android NDK crash reports ... If your Android app contains native libraries, you can enable full stack traces and detailed crash reports...
Read more >
Crashlytics NDK: No symbols for crashes since update to new ...
Crashlytics NDK : No symbols for crashes since update to new sdk · Project-Level build.gradle · App-Level build.gradle · Symbols get generated
Read more >
Release Notes - Play services - Google Developers
... Firebase Cloud Messaging. For more information, see the Firebase Android SDK Release Notes. ... Note: These FIDO APIs should not be used...
Read more >
New features in Android Studio Preview
This page lists the new features introduced in Android Studio preview releases. The preview builds provide early access to the latest features and ......
Read more >
Setting up Firebase Crashlytics NDK | ProAndroidDev
As some of us might know, Firebase will finally be deprecating its support to ... NDK runtime dependency into our app-level build.gradle ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found