gpt4 book ai didi

android - Android进程崩溃时如何创建崩溃日志

转载 作者:行者123 更新时间:2023-12-03 17:43:00 24 4
gpt4 key购买 nike

我的 Java 代码将调用 native 代码。当 native 代码崩溃时,我想将崩溃日志写入自己的文件。我怎样才能做到这一点?我使用过 ACRA,但它不适用于 native 代码。
非常感谢。

最佳答案

来自 ACRA 开发人员的评论发现 here

Comment by project member kevin.gaudin, Dec 16, 2010

Ok, I don't think we can do anything to catch native crashes if they don't result in a Java Exception.

In a future release, I'm planning to add an option to (optionaly) upload a short logcat extract + DropBoxManager? system items. This should allow to get some of these traces, but only if an exception triggers the report... or if you detect an unexpected state and trigger a report yourself.



但是,您也许可以使用 this solution

关于android - Android进程崩溃时如何创建崩溃日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4954527/

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