android – Specified path for unstripped native libs is not a directory – generateCrashlyticsSymbolFileRelease-ThrowExceptions

Exception or error:

How I can define androidNdkOut and androidNdkLibsOut paths with new Firebase Crashlytics SDK?

When I try to run:
./gradlew clean assembleRelease uploadCrashlyticsSymbolFileRelease

I get next error:

Execution failed for task ':app:generateCrashlyticsSymbolFileRelease'.
> Specified path for unstripped native libs is not a directory: /Users/martin/repos/example-app-android/app/obj

If I manually move all my NDK libs to ./app folder I get the same error with different path:

Execution failed for task ':app:generateCrashlyticsSymbolFileRelease'.
> Specified path for stripped native libs is not a directory: /Users/martin/repos/example-app-android/app/build/intermediates/transforms/stripDebugSymbol/release

In this second case the build command sometimes fails, sometimes not.

This issue started to appear after I moved from Fabric Crashlytics plugin to Firebase Crashlytics plugin.
In the Fabric case, I had the option to define: androidNdkOut and androidNdkLibsOut paths.
Is that missing in the new Firebase plugin?

Relevant Code:

Old code example:

    crashlytics {
        enableNdk true
        androidNdkOut "$buildDir/ndklibs/obj"
        androidNdkLibsOut "$buildDir/ndklibs/libs"

New Code example:

            firebaseCrashlytics {
                nativeSymbolUploadEnabled true

How to solve:

I had the same issue when I moved from Fabric to the beta Firebase Crashlytics SDK ( for my android project.
What worked for me was to downgrade gradle from 3.5.3 to 3.4.2 in the top level build.gradle file:

dependencies {
classpath ''


I got answer on this link in a meantime:

In the new Firebase Crashlytics plugin, the androidNdkOut and androidNdkLibsOut properties have been changed to strippedNativeLibsDir and unstrippedNativeLibsDir, and should be declared in firebaseCrashlytics within the variant block, where you declared nativeSymbolUploadEnabled true.

There is still the issue with the paths itself, you need to set relative paths for the strippedNativeLibsDir and unstrippedNativeLibsDir to your /app directory.

Leave a Reply

Your email address will not be published. Required fields are marked *