Home › Build error fixes › Android / Gradle

Native libraries are not 16 KB page-aligned

Android / Gradle · last reviewed 2026-11-10

The error looks like this

Your app does not support 16 KB memory page sizes.

Why it happens

A .so was built with 4 KB alignment (old NDK, old React Native, or an old third-party SDK).

How to fix it

  1. Upgrade to React Native 0.77+ / Expo SDK 53+, AGP 8.5.1+, NDK r28+ (or r27 with -DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON).
  2. Run: releasemedic aab app-release.aab to see exactly which .so files fail.
  3. Update or replace the library that ships each failing .so.

Not sure this is your error? Let ReleaseMedic read the whole log

Build logs are long and the last line is rarely the real cause. ReleaseMedic finds the first real error, explains it and gives the steps — free, and the log never leaves your computer.

$ npx releasemedic log build.log

Or pipe a build straight in: cd android && ./gradlew bundleRelease 2>&1 | npx releasemedic log -

Catch it before you build

Most release errors come from project settings you can check in seconds — signing, SDK levels, privacy manifests, permissions, push and login setup.

$ npx releasemedic

Related Android / Gradle errors