I have an Android project which includes native libraries (.so). I have integrated firebase crashlytics into my project. I am able to get crash dump for the Java crashes in firebase crashlytics. However, in case of native crashes - the stack trace is missing For example - it is something like:
Crashed: Thread: SIGSEGV 0x0000000003000000
at (Missing)()
at (Missing)()
at (Missing)()
at (Missing)()
at (Missing)()
I have added the debug and release version of the native libs inside the folder app/src/main/obj and app/src/main/libs respectively The relevant portion of the app build.gradle is:
crashlytics {
enableNdk true
androidNdkOut 'src/main/obj/'
androidNdkLibsOut 'src/main/libs/'
//manifestPath 'src/main/AndroidManifest.xml'
}
I upload the native symbols using the command
./gradlew crashlyticsUploadSymbolsRelease
which returned success (the build variant of my application is Release). I also did
./gradlew crashlyticsUploadSymbolsDebug
just to be sure, but that also didn't help.
So my questions are:
Is there some step which I am missing?
How can I debug and fix this?