【问题标题】:Crashlytics found an invalid API key: @string/twitter_consumer_secretCrashlytics 发现无效的 API 密钥:@string/twitter_consumer_secret
【发布时间】:2018-08-14 18:18:34
【问题描述】:

当我在项目中安装 Firebase Crashlytics 时,出现如下错误:

  Crashlytics found an invalid API key: @string/twitter_consumer_secret. 
  Check the Crashlytics plugin to make sure that the application has been added 
  successfully! 
  Contact support@fabric.io for assistance.

我该怎么办?提前致谢。

【问题讨论】:

    标签: android firebase crashlytics firebase-crash-reporting


    【解决方案1】:

    像这样在 fabric.properties 上添加这个:

    # Fabric properties file: app/fabric.properties apiSecret=xxxexxcxxxxxxxxxxxxxxxxxxxxxxxx apiKey=xxxexxcxxxxxxexcxxxxxxxxxxxxxxx

    从 AndroidManifest.xml 中删除以下代码:

    <meta-data android:name="io.fabric.ApiKey" android:value="xxxxxxxxxxxxxxxxxxxxax" />

    参考这里:https://docs.fabric.io/android/fabric/settings/working-in-teams.html

    【讨论】:

    • 你在 build.gradle 的底部添加了apply plugin: 'com.google.gms.google-services' 吗?
    【解决方案2】:

    我的问题是我使用了一个非常旧版本的 firebase-ui-auth 库:

    compile 'com.firebaseui:firebase-ui-auth:2.3.0'
    

    在我将其更改为较新的版本后,问题就消失了:

    compile 'com.firebaseui:firebase-ui-auth:4.3.1'
    

    一般来说,我建议您查看所有 google/firebase 库版本。

    【讨论】:

      猜你喜欢
      • 2019-02-01
      • 1970-01-01
      • 2015-02-12
      • 2015-11-07
      • 2018-08-24
      • 2019-03-07
      • 2019-04-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多