gpt4 book ai didi

firebase - 将 Firebase 崩溃报告更新为 Firebase Crashlytics : still on old dashboard

转载 作者:行者123 更新时间:2023-12-02 21:46:24 24 4
gpt4 key购买 nike

我按照描述的步骤升级了 Android 应用程序以使用 Firebase Crashlytics 而不是 Firebase 崩溃报告 here

我在应用程序中添加了此崩溃测试:

Button crashButton = new Button(this);
crashButton.setText("Crash!");
crashButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
Crashlytics.getInstance().crash(); // Force a crash
}
});
addContentView(crashButton,
new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT));

我实际上可以在 Firebase 仪表板上看到 Crashlytics 生成的崩溃:

enter image description here

但是正如您所看到的,这仍然使用旧的仪表板,当我转到 Crashlytics 时,即使在遵循文档中描述的所有步骤之后,我仍然会看到此页面: enter image description here

然后:

enter image description here

什么也没发生。是否还需要执行一些步骤才能将 Firebase 崩溃报告仪表板替换为 Crashlytics 仪表板?

最佳答案

我也有同样的问题,按时间顺序:

  • 首先,我的应用使用了 Fabric 中的 crashlytics
  • 第二,我用 firebase 崩溃报告替换了 crashlytics,但没有完全删除
  • 第三,我想从 Firebase 崩溃报告升级到 Firebase crashlytics,仍然在旧仪表板上。

然后我阅读了文档:

If you're moving to Firebase Crashlytics from Fabric Crashlytics, there are two things to be aware of:

Fabric Beta doesn't currently have a Firebase equivalent. If you'd like to use Beta in your project, keep using Fabric Crashlytics.
If you're upgrading an existing app from Fabric Crashlytics, remove the Fabric API key from your AndroidManifest.xml by deleting the key's meta-data tag, which should include io.fabric.ApiKey and your old Fabric API key.

因此,我从 AndroidManifest.xml 中删除 Fabric API key ,然后运行该应用程序。它有效。

关于firebase - 将 Firebase 崩溃报告更新为 Firebase Crashlytics : still on old dashboard,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50952566/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com