firebase-android-sdk: firebase-crashlytics-gradle:2.9.5 not working

[READ] Step 1: Are you in the right place?

Yes

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: Giraffe
  • Firebase Component: Crashlytics plugin
  • Component version: 2.9.5

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

Build fails, current workaround is to downgrade to as far back as 2.9.2 due to separate bugs in previous versions

Relevant Code:

 % ./gradlew clean testProdReleaseUnitTest
...
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:mapProdReleaseSourceSetPaths'.
> Could not determine the dependencies of null.
   > Could not create task ':app:injectCrashlyticsBuildIdsProdRelease'.
      > Cannot invoke method map() on null object

usage of the plugin:

import com.google.firebase.crashlytics.buildtools.gradle.CrashlyticsExtension
plugins {
    id("com.google.firebase.crashlytics")
}
android {
    buildTypes {
        release {
            the<CrashlyticsExtension>().nativeSymbolUploadEnabled = true
            the<CrashlyticsExtension>().unstrippedNativeLibsDir = file("$rootDir/app/build/intermediates/merged_native_libs/debug/out/lib/armeabi-v7a/")
        }
    }
....

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 13
  • Comments: 24 (9 by maintainers)

Most upvoted comments

@Zayankovsky that was it, thanks! Here is the proper artifact m2repository.zip. Sorry about that, I must have uploaded an earlier version of the artifact before. I double checked this one has the fix, please confirm this resolves the issue for you. Unfortunately this won’t go out in the next release because I hadn’t verified it in time, so it will be included in the next-next release.

I am having the same issue. That is why people are leaving android development. You spend hours in figuring out Gradle and libraries issues…

We are aware of this issue. The work around is to continue to use version 2.9.2 for now. We are doing some internal refactoring to make the Crashlytics Gradle plugin more stable. I will post an artifact here when it is ready, so you don’t have to wait for another release.

Same problem with the 2.9.5 plugin (Android Studio Electric Eel | 2022.1.1 Patch 2) , call stack is below:

Run ./gradlew --parallel lintProdRelease
Starting a Gradle Daemon
Checking for connection to remote build cache...
Found connection to build cache server. Enable remote build cache
Type-safe project accessors is an incubating feature.
> Task :build-logic:convention:generateExternalPluginSpecBuilders FROM-CACHE
> Task :build-logic:convention:extractPrecompiledScriptPluginPlugins FROM-CACHE
> Task :build-logic:convention:compilePluginsBlocks FROM-CACHE
> Task :build-logic:convention:generatePrecompiledScriptPluginAccessors FROM-CACHE
> Task :build-logic:convention:generateScriptPluginAdapters FROM-CACHE
> Task :build-logic:convention:compileKotlin FROM-CACHE
> Task :build-logic:convention:compileJava NO-SOURCE
> Task :build-logic:convention:pluginDescriptors
> Task :build-logic:convention:processResources
> Task :build-logic:convention:classes
> Task :build-logic:convention:jar
> Task :build-logic:convention:inspectClassesForKotlinIC

FAILURE: Build failed with an exception.

actionable tasks: 4 executed, 6 from cache
* What went wrong:
Could not determine the dependencies of task ':app:lintReportProdRelease'.
> Could not create task ':app:injectCrashlyticsBuildIdsProdRelease'.
   > Cannot invoke method map() on null object