You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Firebase Crashlytics中setCustomKey方法无法正常生效问题问询

Firebase Crashlytics自定义键未显示问题
  • 已参照官方文档添加自定义键代码:
    FirebaseCrashlytics.getInstance().setCustomKey("my_string_key", "foo" /* string value */)
    
  • 使用的依赖为最新版本:
    implementation platform('com.google.firebase:firebase-bom:30.3.1')
    implementation 'com.google.firebase:firebase-crashlytics'
    implementation 'com.google.firebase:firebase-analytics'
    
  • 通过以下代码触发崩溃:
    throw RuntimeException("Test Crash6")
    
  • 当前问题:崩溃已在Firebase控制台显示,但自定义键未出现在崩溃报告中,截图如下:
    崩溃报告无自定义键截图1
    崩溃报告无自定义键截图2

内容的提问来源于stack exchange,提问作者Jim Clermonts

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.24 10:45:32