0

I'm hitting a critical roadblock when trying to publish my application via the Google Play Console: My App Bundle is completely rejected with the persistent message:

Your app does not support 16KB memory page sizes.

This is not a warning, but a hard block preventing any submission.

I'm aware this issue is crucial for performance on specific 64-bit devices, and I have spent considerable time troubleshooting. I have followed multiple official guides and tutorials, and meticulously updated all my Android build tools to the latest versions I could find, but the rejection simply won't disappear.I am running a standard Flutter project.

I am reaching out because, based on my configuration below, the 16KB alignment should be handled automatically by the recent Android Gradle Plugin (AGP >= 8.5.1).

My Current Configuration (Latest Versions Applied)

android/gradle/wrapper/gradle-wrapper.properties

distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.0-all.zip

android/settings.gradle

plugins {
    id "dev.flutter.flutter-plugin-loader" version "1.0.0"
    id "com.android.application" version "8.12.0" apply false // <-- AGP
    id "org.jetbrains.kotlin.android" version "2.1.0" apply false
    id 'com.google.gms.google-services' version '4.3.14' apply false
}

android/app/build.gradle

android {
    compileSdk = 36
    ndkVersion = "29.0.14206865"

    compileOptions {
       sourceCompatibility = JavaVersion.VERSION_11
       targetCompatibility = JavaVersion.VERSION_11
    }

    kotlinOptions {
        jvmTarget = '11'
        // jvmTarget = JavaVersion.VERSION_1_8
    }
4
  • 2
    This error comes from a plugin’s native .so library, not your Gradle config. One of your dependencies is still built with 4 KB pages. Extract your AAB and check the .so files, the plugin with the outdated native library needs updating/replacing. Commented Nov 14 at 13:54
  • I have recently written an article that discusses this and may be of help. Commented Nov 14 at 18:30
  • i think the issue with compiler setting in flutter should add line of code ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON here YOUR_FLUTTER_DIR/engine/src/build/config/compiler/BUILD.gn because you are used the ndk version r28+ Commented Nov 16 at 3:33
  • Also make sure you got Flutter 3.38.1+ since we got Android 16KB Page Size support. Commented Nov 16 at 6:40

1 Answer 1

0

this issue is mostly thrown from native library(i.e the plugin that you are using is based on 4kb pages and hasn't been migrated to the 16kb compatiable pages).

to know which plugin is throwing that issue
- build apk, then test the apk from android studio's anaylize apk
- upgrade that plugin or replace it with alternative plugins

this should solve this issue

New contributor
Rojesh Shrestha is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
Sign up to request clarification or add additional context in comments.

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.