how to create aab that support 16 kb memory page

Shay Wilner 1,746 Reputation points
2025-11-23T00:03:06.64+00:00

Hello

in project net maui i create via the archive the signed aab

but unfortunately google console android didn't accept because it does not support 16 kb memory page

what you suggest

Thanks

Developer technologies | .NET | .NET MAUI
{count} votes

1 answer

Sort by: Most helpful
  1. Jack Dang (WICLOUD CORPORATION) 4,865 Reputation points Microsoft External Staff Moderator
    2025-11-24T10:51:30.2433333+00:00

    Hi Shay Wilner,

    Thanks for reaching out.

    The issue you’re seeing happens because Google Play requires native code libraries in AABs to support 16 KB memory pages. This is primarily a native Android/NDK requirement, not a bug in MAUI itself. Google now enforces this for apps targeting newer Android API levels, especially for ARM64 architectures. (Android Developers Blog)

    Here’s what you can do:

    1. Ensure 64-bit builds are enabled
      • In Visual Studio, open your Android project properties → Android Options → Advanced.
      • Make sure ARM64 and x86_64 (if needed) are selected under Supported Architectures.
      • Official Microsoft doc on MAUI project settings: Visual Studio Properties for .NET MAUI
    2. Use the latest Android NDK
      • MAUI apps rely on the NDK for native binaries.
      • Using an older NDK version may default to 4 KB memory pages.
      • Update to the latest NDK supported by MAUI/.NET 9 to generate libraries with 16 KB pages.
      • More info: Support 16 KB Page Sizes – Android Developers
    3. Rebuild and re-archive the AAB
      • Clean your solution.
      • Archive again with the updated settings and submit to Google Play.
      • Use the Play Console’s App Bundle Explorer to verify compliance. (Android Developers Blog)
    4. Optional: Check for linker/native library issues
      • Some native libraries (SkiaSharp, SQLite, etc.) may need updates to their ARM64 binaries to fully support 16 KB pages.
      • Ensure all NuGet packages are up to date.

    Currently, there is no MAUI-specific flag to change the memory page size directly - it is controlled by the NDK build and the platform libraries.

    Following these steps usually resolves the issue for modern MAUI apps targeting Google Play.

    Disclaimer: Some of the links provided are not Microsoft websites. The pages appear to be providing accurate, safe information. Watch out for ads on these sites that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on these sites before you decide to download and install it.

    Hope this helps! If my answer was helpful - kindly follow the instructions here so others with the same problem can benefit as well.

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.