📜  如何将测试 carsh 发送到 firebase 控制台 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:55.879000             🧑  作者: 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))