从 com.google.gms:google-services:4.0.1
更新到 com.google.gms:google-services:4.1.0
后我遇到了这个错误>
Crashlytics found an invalid API key: null.
Check the Crashlytics plugin to make sure that the application has been added successfully!
Contact support@fabric.io for assistance.
对于 Java 项目,他们没有这个问题。我试图使缓存无效并重新启动,但没有解决。
我正在使用: Android Studio 3.3 金丝雀 8
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0-alpha08'
classpath 'com.google.gms:google-services:4.1.0'
classpath 'io.fabric.tools:gradle:1.25.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.61"
classpath "org.jetbrains.kotlin:kotlin-android-extensions:1.2.61"
}
FirebaseCrashlytics 版本:
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.5'
谢谢!
最佳答案
尝试将此添加到 list
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-xxxxxx~xxxxxx"/>
查看我对 Default FirebaseApp is not initialized 的相关回答了解更多详情。
关于android - Crashlytics 在更新 com.google.gms : null. 1.0 后发现无效的 API key :google-services:4.,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52185294/