Skip to content

ML Kit native libraries are not 16 KB page-size aligned (AGP 8.5+ compatibility issue) #987

@kayasthjaideep19-cyber

Description

@kayasthjaideep19-cyber

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions