Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not create task ':app:injectCrashlyticsMappingFileIdDebug'

* What went wrong:
Could not determine the dependencies of task ':app:mergeDebugResources'.
> Could not create task ':app:injectCrashlyticsMappingFileIdDebug'.
   > No signature of method: org.gradle.api.internal.provider.DefaultValueSourceProviderFactory$ValueSourceProvider.forUseAtConfigurationTime() is applicable for argument types: () values: []

project's build.gradle

buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath "com.android.tools.build:gradle:4.0.0"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.google.gms:google-services:4.3.5'
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.0'
    }
}

app's build.gradle

apply plugin: 'com.google.firebase.crashlytics'

//...
dependencies {
    implementation 'com.google.firebase:firebase-crashlytics:17.3.1'
}
like image 312
ericn Avatar asked Feb 15 '21 17:02

ericn


1 Answers

Downgrading to com.google.firebase:firebase-crashlytics-gradle:2.2.0 helped me, apparently something wrong with the latest version

like image 95
Jouni Peltonen Avatar answered Sep 17 '22 16:09

Jouni Peltonen