Skip to content

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

Open

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.

Activity

  1. marinacuello-android commented on Mar 1, 2026

    @marinacuello-android

    HI @AnkitT28 did you have any news about this? I'm trying to get back to life an older app and I encountered the same issue. Is there any current version of this library which fixes this? I haven't found it on the changelog and simply using the last version to try would require a lot of changes on the codebase. I tried with 9.13.10 and it silences that warning, but I still see a popup on the Android 16 devices saying it's not compatible and it crashes on 32-bit devices. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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