Skip to content
Discussion options

You must be logged in to vote

For Android, you should use MinSizeRel instead of Release. However, the NDK's CMake toolchain always includes debug symbols in all build variants, which is why your release build ends up being large. You should ensure that your packaging tools strip these symbols from the libraries before including them in the APK (AGP do this by default).

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@OussamaTeyib
Comment options

@jestarray
Comment options

@OussamaTeyib
Comment options

@jestarray
Comment options

@OussamaTeyib
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by OussamaTeyib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants