✅ Step 1: Update Your plugins Section
Make sure your project-level settings.gradle file includes the latest plugin versions:
plugins {
id “dev.flutter.flutter-plugin-loader” version “1.0.0”
id “com.android.application” version “8.11.0” apply false
id “org.jetbrains.kotlin.android” version “2.2.20” apply false
}
✅ Step 2: Update Your Gradle Distribution
Open your gradle-wrapper.properties file and replace the existing distribution URL with the latest one:
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip
✅ Step 3: Add Core Library Desugaring Dependency
In your app/build.gradle, add the following dependency inside the dependencies block:
dependencies {
coreLibraryDesugaring ‘com.android.tools:desugar_jdk_libs:2.1.5’
}
This ensures compatibility with the latest Android SDK features.
✅ Step 4: Update NDK Version
Inside your android block, specify the latest supported NDK version:
ndkVersion “28.2.13676358”
This version provides proper support for 16KB page sizes.
✅ Step 5: Enable Flexible Page Sizes in CMake
Finally, update your build.gradle to enable flexible page sizes:
externalNativeBuild {
cmake {
arguments “-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON”
}
}
🎯 Final Note
After completing all these steps, clean and rebuild your Flutter project:
- flutter clean
- flutter pub get
- flutter build apk
Your Flutter app will now fully support 16KB page sizes and meet the Google Play Store 2025 compliance requirements. 🚀



