简体   繁体   English

Crashlytics没有发送崩溃报告,而是显示带有错误消息的红色屏幕

[英]Crashlytics not sending crash report instead showing red screen with error message

Iam integrating crashlytics in my react native application.To test crash i am accessing a undeclared variable.But the app is not crashing instead it is "showing null is not an object" in red screen.I know that crash will be sent when the app shows unfortunately closed. Iam在我的反应本机应用程序中集成了碰撞。为了测试崩溃,我正在访问一个未声明的变量。但是应用程序没有崩溃,而是在红色屏幕中显示“不是一个对象”。我知道崩溃将在应用程序时发送显然不幸关闭。 I am building the app instead of directly running and installing it in device and testing. 我正在构建应用程序而不是直接运行并将其安装在设备和测试中。

Thank you 谢谢

You can force a crash by calling: 你可以通过调用强制崩溃:

throw new RuntimeException("This is a crash");

You can have a look at the documentation here . 您可以在这里查看文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM