Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Android NDK symbolication documentation - CMake support #2613

Open
mmarczell-graphisoft opened this issue Feb 7, 2024 · 2 comments
Labels
diagnostics Related to App Center's Diagnostics service feature request New feature request

Comments

@mmarczell-graphisoft
Copy link

The documentation says this:

Option 1: Upload native binaries

Put all .so files from the project's obj/local/$ABI/ directory into a .zip file.

There is no such directory in my build tree. The documentation does not mention that this directory is specific to ndk-build. My app is built with CMake. CMake based Release builds strip the debug symbols from the .so files. I don't know where the unstripped .so files are located in a CMake based build, or even whether they at all exist after the build has finished.

The documentation should indicate that this instruction is for ndk-build based builds, as well as provide equivalent instructions for CMake based builds.

@mmarczell-graphisoft mmarczell-graphisoft added the feature request New feature request label Feb 7, 2024
@mmarczell-graphisoft
Copy link
Author

According to https://developer.android.com/build/shrink-code#native-crash-support, the unstripped .so files' location in a CMake based build is dependent on the version of the Android Gradle plugin.

Android Gradle plugin version 4.0 or earlier

app/build/intermediates/cmake/universal/release/obj/

Android Gradle plugin version 4.1 or later

Undocumented, variable path. In my particular case it was app/build/intermediates/cxx/RelWithDebInfo/e2gf2c5g/obj/arm64-v8a/

@DmitriyKirakosyan DmitriyKirakosyan added the diagnostics Related to App Center's Diagnostics service label Feb 8, 2024
@mmarczell-graphisoft
Copy link
Author

Even after uploading all of my .so files in a zip, my Android native crashes are not getting symbolicated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diagnostics Related to App Center's Diagnostics service feature request New feature request
Projects
None yet
Development

No branches or pull requests

2 participants