Skip to content

Unresolved reference to firebaseCrashlytics Gradle extension since 2.6.0 [firebase-crashlytics-gradle] #2665

Closed
@lordcodes

Description

@lordcodes

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

Issues filed here should be about bugs in the code in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:

  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • For help troubleshooting your application that does not fall under one
    of the above categories, reach out to the personalized
    Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: 4.2 (Latest Stable channel)
  • Firebase Component: Firebase Crashlytics Gradle plugin
  • Component version: 2.6.0+ (started in 2.6.0, still happens in latest 2.6.1)

[REQUIRED] Step 3: Describe the problem

The Gradle configuration to use the 'firebaseCrashlytics' Gradle extension, in order to set configuration properties such as 'mappingFileUploadEnabled', can no longer be resolved. This is using an unchanged set up that worked in previous version and is the same as what is in the Firebase Android documentation.

Steps to reproduce:

  • Add configuration to app module Gradle configuration to use the 'firebaseCrashlytics' Gradle extension and set any property, such as 'mappingFileUploadEnabled'.
  • When you configure the project you get Unresolved errors relating to the extension.
e: /src/app/build.gradle.kts:146:13: Unresolved reference: firebaseCrashlytics
e: /src/app/build.gradle.kts:147:17: Unresolved reference: mappingFileUploadEnabled
e: /src/app/build.gradle.kts:164:13: Unresolved reference: firebaseCrashlytics
e: /src/app/build.gradle.kts:165:17: Unresolved reference: mappingFileUploadEnabled

If you rollback to the previous version, 2.5.2, everything works again.

Relevant Code:

In the app module build.gradle.kts:

buildTypes {
    getByName("debug") {
        ...

        firebaseCrashlytics {
            mappingFileUploadEnabled = false
        }
    }
    
	...
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions