Skip to content

Rive Android library (.so files) causes 16KB page alignment failures #423

@AnkitT28

Description

@AnkitT28
Image

When building an Android APK that includes the Rive Android runtime library (e.g., app.rive:rive-android), the resulting APK fails the 16KB page alignment check required for compatibility with Android 15 (API 35) and higher. Specifically, the warning indicates that some native libraries have LOAD segments not aligned to 16KB boundaries, making the APK incompatible with 16KB-aligned devices.
This issue blocks deployment to production devices running Android 15+, as Google Play and Android Studio enforce stricter alignment for performance and security reasons (related to the new 16KB page size support in ARM64 architectures).
Expected Behavior:
The Rive library should ship with native binaries (.so files) that have all LOAD segments properly aligned to 16KB boundaries, ensuring seamless compatibility with Android 15+ without requiring manual post-processing by developers.
Actual Behavior:
During APK build or analysis (e.g., via Android Studio's APK Analyzer or apkanalyzer), the following warning appears:
Android 16KB Alignment
APK app-debug.apk is not compatible with 16KB devices. Some libraries have LOAD segments not aligned at 16KB boundaries: [list of affected .so files, e.g., libnative-rive.so, etc.]
This results in the APK being flagged as incompatible, and it may fail installation or sideloading on 16KB-enabled devices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions