* 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: []
项目的 build.gradlebuildscript {
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'
}
}
应用程序的 build.gradleapply plugin: 'com.google.firebase.crashlytics'
//...
dependencies {
implementation 'com.google.firebase:firebase-crashlytics:17.3.1'
}
最佳答案
降级到 com.google.firebase:firebase-crashlytics-gradle:2.2.0 帮助了我,显然最新版本有问题
关于android - 无法创建任务 ':app:injectCrashlyticsMappingFileIdDebug',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66213063/