【问题标题】:Fabric: Failed to retrieve settings from crashlytics after moving the apiKey from AndroidManifest to fabric.propertiesFabric:将 apiKey 从 AndroidManifest 移动到 fabric.properties 后,无法从 crashlytics 检索设置
【发布时间】:2019-02-20 00:41:59
【问题描述】:

我想隐藏我的 fabric apiKey 并按照https://docs.fabric.io/android/fabric/settings/working-in-teams.html#android-projects 中的指南进行操作。

在我将结构 apiKey 从 AndroidManifest 移动到 fabric.properties 文件后,结构显示 E/Fabric: Failed to retrieve settings from https://settings.crashlytics.com/spi/v2/platforms/android/apps/myapp 并且不再向 Fabric 控制台报告。

我错过了什么步骤吗?请帮忙..

【问题讨论】:

    标签: android firebase crashlytics google-fabric crashlytics-android


    【解决方案1】:

    在项目中添加 crashlytics 后,您需要从 Firebase 控制台项目设置中下载更新的 google-services.plist 和 json 文件。

    【讨论】:

      【解决方案2】:

      AndroidManifest.xml 中添加 meta-data 为我解决了这个问题。

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

      我将 API 密钥保存在两个地方(AndroidManifest.xml 和 fabric.properties)。希望它也适用于您。

      【讨论】:

        猜你喜欢
        • 2019-09-07
        • 2019-03-27
        • 2018-07-30
        • 1970-01-01
        • 1970-01-01
        • 2019-03-31
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多