easiest way to debug crash in native library, linked by Android app?

前端 未结 5 1092
太阳男子
太阳男子 2021-02-06 00:53

I have ported and created several low-level C-libraries to Android for my use in my application. I cross-compiled them using the NDK, and then link to them using System.loadLib

5条回答
  •  天涯浪人
    2021-02-06 01:34

    Try using NDK-STACK with the logcat output, it will at least tell you what file is the culprit and also the function.

    https://developer.android.com/ndk/guides/ndk-stack

提交回复
热议问题