📜  开始使用 firebase crashlytics - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:59.688000             🧑  作者: Mango

代码示例1
val crashButton = Button(this)
crashButton.text = "Test Crash"
crashButton.setOnClickListener {
   throw RuntimeException("Test Crash") // Force a crash
}

addContentView(crashButton, ViewGroup.LayoutParams(
       ViewGroup.LayoutParams.MATCH_PARENT,
       ViewGroup.LayoutParams.WRAP_CONTENT))