title: firebase-crashlytics-ndk: Unstripped native library path required by generateCrashlyticsSymbolFreeDebug does not exist
body: <p>I am using  ...</p>
  <ul>
  <li><code>com.google.firebase:firebase-crashlytics-ndk:17.3.1</code></li>
  <li><code>com.google.firebase:firebase-crashlytics-gradle:2.4.1</code></li>
  <li><code>com.google.gms:google-services:4.3.5</code></li>
  </ul>
  <p>... in my Android application project which depends on a Android library project. The library project uses both Kotlin and C-Code. The library build process outputs an <code>*.aar</code> with unstripped <code>*.so</code> files. When I build the application project I can verify that the unstripped <code>*.so</code> files of the library are unpacked into <code>app/build/intermediates/merged_native_libs/&lt;BuildVariant&gt;/out/lib</code> and that they are still unstripped.</p>
  <p>The app is configured with the build flavors <code>free</code> and <code>paid</code> and the usual build types <code>debug</code> and <code>release</code>.</p>
  <p>First, I assemble the APK via <code>./gradlew clean assembleFreeDebug</code>.</p>
  <p>Then, I invoke <code>./gradlew generateCrashlyticsSymbolFileFreeDebug</code> which fails:</p>
  <blockquote>
  <p>Execution failed for task ':app:generateCrashlyticsSymbolFileFreeDebug'.
  Unstripped native library path required by generateCrashlyticsSymbolFileFreeDebug does not exist: app\build\intermediates\merged_native_libs\PaidDebug\out\lib. Check your configuration, or override using the firebaseCrashlytics.unstrippedNativeLibsDir extension property.</p>
  </blockquote>
  <p>Is this a bug where build flavors are mixed up by the Gradle plugin or a misconfiguration on my side?</p>
  <p>I can workaround it if I also <code>assemblePaidDebug</code> without <code>clean</code>. Then, symbol files are generated by <code>generateCrashlyticsSymbolFileFreeDebug</code> in <code>app/build/crashlytics</code>. I am however not sure if it is a <em>good idea</em> to mix the input files (flavors) to generate the <code>*.cSYM</code> files.</p>
  <h1>Related</h1>
  <ul>
  <li><a href="https://stackoverflow.com/questions/65594675/appgeneratecrashlyticssymbolfilerelease-error-unstripped-native-library-path">:app:generateCrashlyticsSymbolFileRelease error: Unstripped native library path required by generateCrashlyticsSymbolFileRelease does not exist:</a></li>
  </ul>