Flutter 16 KB Page Size Requirement: How to Fix It
-
Home
-
Mobile Apps
-
Flutter 16 KB Page Size Requirement: How to Fix Your App for Google Play
Flutter 16 KB Page Size Requirement: How to Fix Your App for Google Play
Google Play requires 16 KB memory page support for apps targeting Android 15+. How to check and fix a Flutter app step by step, and test it.
Last updated: 12 November 2026
Google Play requires every app that targets Android 15 (API level 35) or higher to support 16 KB memory page sizes on 64-bit devices. According to the Android developer documentation, from 1 February 2027 you won't be able to release updates that don't support 16 KB pages. For a Flutter app, the fix usually means upgrading Flutter, the Android Gradle Plugin and the NDK, then updating every plugin that ships native code.
Key takeaways
- The requirement applies to apps targeting Android 15+ on Google Play, and it is about native code (
.sofiles), not your Dart code. - Every Flutter app ships native code (the Flutter engine,
libflutter.so), so check yours even if you never wrote C or C++. - Upgrade to a current stable Flutter release, AGP 8.5.1 or higher and NDK r28 or higher, then update plugins with native libraries.
- Verify with Android Studio's APK Analyzer or
zipalign -c -P 16 -v 4, and test on a 16 KB emulator image.
What is the 16 KB page size requirement?
Android has always used 4 KB memory pages. Starting with Android 15, devices can be configured to use 16 KB pages, which Google says reduces app launch times under memory pressure and improves boot and camera start times. Native libraries built for 4 KB pages may fail to load or crash on these devices, so Google Play now checks that apps targeting Android 15 or higher are built for 16 KB pages.
If your app only contains Kotlin or Java code, it already supports 16 KB pages. Flutter apps are different: the Flutter engine itself is a native library, and many popular plugins (camera, video, maps, databases, payments, analytics and crash reporting SDKs) include their own .so files.
How do I know if my Flutter app is affected?
- Build a release APK:
flutter build apk --release. - In Android Studio, open Build > Analyze APK… and select the APK.
- Open the
libfolder. Each.sofile has an Alignment column; any warning there means that library isn't 16 KB aligned. - Check the Play Console too: it shows a 16 KB compatibility warning on releases that don't comply.
From the command line, Google's documentation gives this check (Build-Tools 35.0.0 or higher). The last line should say "Verification successful":
zipalign -c -P 16 -v 4 app-release.apk
How do I fix it in a Flutter project?
1. Upgrade Flutter
Run flutter upgrade on the stable channel. Older Flutter releases shipped an engine that wasn't 16 KB aligned. Community guides most often recommend Flutter 3.32 or later, but the safest choice is simply the latest stable release.
2. Upgrade the Android Gradle Plugin to 8.5.1 or higher
AGP 8.5.1 and higher packages uncompressed native libraries with 16 KB zip alignment. Update the plugin version in android/settings.gradle (or android/build.gradle in older projects) and the Gradle wrapper version that AGP requires.
3. Use NDK r28 or higher
NDK r28 and higher compile 16 KB-aligned libraries by default. In android/app/build.gradle, set an r28+ version, for example:
android {
ndkVersion = "28.0.12433566"
}
If a native library must still be built with NDK r27 or lower, Google documents these linker flags: -Wl,-z,max-page-size=16384 and -Wl,-z,common-page-size=16384.
4. Update every plugin with native code
This is where most apps get stuck. Run flutter pub outdated, upgrade plugins, then re-check the APK in APK Analyzer. If one library is still unaligned, find which plugin ships it and check that plugin's changelog for "16 KB" support. If there's no compatible version, you'll need to replace the plugin or ask its maintainer for a rebuild.
5. Remove 4 KB assumptions from your own native code
If you have custom C/C++ code, don't hard-code PAGE_SIZE or 4096. Use getpagesize() or sysconf(_SC_PAGESIZE) instead.
How do I test on a 16 KB device?
- In Android Studio's SDK Manager, install a "16 KB Page Size" Android 15 (or later) system image and create an emulator from it.
- On Pixel 8 and newer Pixel devices, you can use the developer option "Boot with 16KB page size".
- Confirm the environment with
adb shell getconf PAGE_SIZE. It should return16384. - Install your release build and test the screens that use native plugins: camera, maps, video, local databases and payments.
FAQ
Does the 16 KB rule apply to apps that don't target Android 15?
The Google Play requirement applies to apps targeting Android 15 (API level 35) and higher. Google Play also requires apps to target recent API levels, so most actively updated apps fall under it.
Is upgrading Flutter enough?
Not always. The Flutter engine is only one native library. Any plugin or SDK with its own .so files must also be 16 KB aligned.
What happens if I don't fix it?
Google's documentation says that from 1 February 2027 you won't be able to release app updates that don't support 16 KB memory page sizes. Your app may also crash or fail to install on 16 KB devices.
How can I check a library quickly?
Use APK Analyzer's Alignment column, or Google's check_elf_alignment.sh script, which reports ALIGNED or UNALIGNED for each arm64-v8a library.
Need help updating your app?
HMINFOSOFT builds and maintains Flutter and native mobile apps for businesses. If your app is blocked by the 16 KB requirement, our mobile app development team in Pune can audit your dependencies, upgrade the build and test it on 16 KB devices. Get a free quote.
Share this post:
Related Posts
How much a mobile app costs in India in 2026, from MVP to complex platforms, what drives the price,...
Who needs Google Play's 12-tester, 14-day closed test, why organization accounts with a D-U-N-S numb...