Eug
09/18/2025, 9:44 AMAndrzej Zabost
09/18/2025, 9:46 AMAndrzej Zabost
09/18/2025, 9:47 AM.so file with a script like this one:
https://gist.github.com/azabost/3f8a33dca49a2b951bde0ba7d63499a0Eug
09/18/2025, 9:49 AMEug
09/18/2025, 9:56 AMEug
09/18/2025, 9:56 AMAndrzej Zabost
09/18/2025, 11:46 AMio.sentry:sentry-android-ndk) contain those native .so libraries (in your case: libopenjpeg.so) that must be updated.
If it's only a transitive dependency, you can still update it by adding an explicit dependency in your project.
So, assuming there is a library like com.example.something:library that contains said .so file
⢠use mvnrepository.com to find that library
⢠find its latest version there
⢠maybe check the release notes of that library to see if they mentioned fixing the compatibility
⢠add an explicit dependency in your project, e.g. implementation("com.example.something:library:<latest version>") to see if that helps with 16KB compatibility
⢠EDIT: but long-term, add a dependency constraint instead of the explicit dependencyVampire
09/18/2025, 12:02 PMIf it's only a transitive dependency, you can still update it by adding an explicit dependency in your project.You can but shouldn't. To update a transitive dependency, better use a dependency constraint. That way you update the version if the lib is still used transitively at all. Otherwise some day the dependency that uses it does no longer use it but you still ship it because you depend on it while not actually using it.
Andrzej Zabost
09/18/2025, 12:05 PMVampire
09/18/2025, 12:05 PMconstraints { ... } around that line? šAndrzej Zabost
09/18/2025, 12:07 PMEug
09/18/2025, 12:08 PMAndrzej Zabost
09/18/2025, 12:08 PMEug
09/18/2025, 12:08 PMEug
09/18/2025, 12:08 PMEug
09/18/2025, 12:09 PMAndrzej Zabost
09/18/2025, 12:09 PMEug
09/18/2025, 12:10 PMAndrzej Zabost
09/18/2025, 12:11 PMVampire
09/18/2025, 12:19 PMruntimeClasspath configuration and looking inside to find which contains the file in question.Vampire
09/18/2025, 12:20 PMgrep or similarColton Idle
09/19/2025, 1:50 PMfind ~/.gradle/caches -name "*.aar" | xargs grep -l "blah.so"Colton Idle
09/19/2025, 1:51 PMAndrzej Zabost
09/19/2025, 8:09 PMgrep -l should also work fine, unless you are very unlucky and find an accidental blah.so text content (instead of a file) somewhere š