I\'m getting sigsegv 11
in native code and i need to avoid stripping to understand what\'s wrong. The app uses library (aar) and i was able to avoid stripping f
There's an undocumented method 'doNotStrip' in packagingOptions, just add following lines in your build.gradle
packagingOptions{
doNotStrip "*/armeabi/*.so"
doNotStrip "*/armeabi-v7a/*.so"
doNotStrip "*/x86/*.so"
}
Fortunately you don't actually need to keep the symbols in the app. The NDK ships a tool called ndk-stack
(it's in the root of the NDK) that can symbolize a stack trace for you: https://developer.android.com/ndk/guides/ndk-stack.html