I am experiencing issues using ML Kit with the new 16 KB page-size requirement introduced for Android 15 and AGP 8.5+. Several ML Kit native .so libraries appear not to be aligned to 16 KB, causing build failures when running stripDebugSymbols, and potentially causing Google Play upload validation failures.
This issue occurs even with the latest ML Kit dependency versions.
implementation "com.google.mlkit:barcode-scanning:17.3.0"
Build Tools / Environment
Android Gradle Plugin (AGP): 8.5.x or 8.6.x
Gradle: 8.x
Target SDK: 34 or 35
Build type: Release (issues occur during symbol stripping)
Device ABIs tested: arm64-v8a, armeabi-v7a, x86_64
stripReleaseDebugSymbols FAILED
ELF file alignment does not match 16 KB requirement.