DEV Community

Cover image for Preparing Your Flutter Apps for Google Play's 16KB Page Size Requirement

Preparing Your Flutter Apps for Google Play's 16KB Page Size Requirement

Chittaranjan Nayak on July 23, 2025

Google Play is constantly improving and offering a superior experience in both terms of the users and the developers. One of the major changes that...
Collapse
 
zaid_syni_05ff81fb2cce5e1 profile image
Zaid syni • Edited

environment:
sdk: '>=3.3.0-279.0.dev <4.0.0'

dependencies:
flutter:
sdk: flutter

cupertino_icons: ^1.0.8
get: ^4.7.2
gap: ^3.0.1
shimmer: ^3.0.0
dio: ^5.9.0
shared_preferences: ^2.5.3
cached_network_image: ^3.4.1
country_code_picker: ^3.4.0
pin_input_text_field: ^4.5.2
uuid: ^4.3.3
intl: ^0.20.2
open_file: ^3.5.10
url_launcher: ^6.3.2
image_picker: ^1.2.0
lottie: ^3.3.1
flutter_svg: ^2.0.13
facebook_app_events: ^0.20.1
awesome_notifications: ^0.10.1
flutter_rating_bar: ^4.0.1
swipe_to: ^1.0.6
flutter_widget_from_html: ^0.17.0
flutter_html: ^3.0.0
youtube_player_flutter: ^9.1.2
flutter_image_slideshow: ^0.1.6
firebase_core: ^4.0.0
firebase_database: ^12.0.0
firebase_messaging: ^16.0.0
firebase_storage: ^13.0.0
firebase_crashlytics: ^5.0.0
firebase_analytics: ^12.0.0
firebase_auth: ^6.0.1
razorpay_flutter: ^1.4.0
flutter_pdfview: ^1.4.1+1
pdf: ^3.11.3
geocoding: ^4.0.0
geolocator: ^14.0.2
google_maps_flutter: ^2.12.3
flutter_compass: ^0.8.0
camera: ^0.11.2
permission_handler: ^12.0.1
path_provider: ^2.1.5
screenshot: ^3.0.0
app_settings: ^6.1.1
agora_rtc_engine: ^6.5.2
flutter_ringtone_player: ^4.0.0+4
proximity_sensor: ^1.3.8
share_plus: ^11.1.0
photo_view: ^0.15.0
webview_flutter: ^4.13.0
in_app_update: ^4.2.3
flutter_sound: ^9.28.0
audioplayers: ^6.5.0
app_links: ^6.4.1
connectivity_plus: ^6.1.5
in_app_review: ^2.0.9
wakelock_plus: ^1.3.2

xml: any
http: any
webview_flutter_android: any
webview_flutter_wkwebview: any
phonepe_payment_sdk: ^2.0.3
clevertap_plugin: ^3.5.1
advertising_id: ^2.7.1
timezone: ^0.10.1
dotted_border: ^2.1.0
android_play_install_referrer: ^0.4.0
clarity_flutter: ^1.3.0
truecaller_sdk: ^1.0.1
appsflyer_sdk: ^6.17.3
flutter_dotenv: ^6.0.0

dev_dependencies:
flutter_test:
sdk: flutter

flutter_lints: ^6.0.0
fluttertoast: ^8.2.12

my pubspec is updated with all the latest versions, still
my apps warning, App must support 16 KB memory page sizes

Collapse
 
cyberpride profile image
Emmanuel Adenuga

use minSdk 23,
compile and target sdk 35 or 36

Collapse
 
zaid_syni_05ff81fb2cce5e1 profile image
Zaid syni

I already have 35 sdk

plugins {
id "com.android.application"
// START: FlutterFire Configuration
id 'com.google.gms.google-services'
id 'com.google.firebase.crashlytics'
// END: FlutterFire Configuration
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}

def flutterVersionCode = '1'
def flutterVersionName = '5.0.3'
//def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
//if (flutterVersionCode == null) {
// flutterVersionCode = '8'
//}
//
//def flutterVersionName = localProperties.getProperty('flutter.versionName')
//if (flutterVersionName == null) {
// flutterVersionName = '1.0.8'
//}

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

android {
namespace "com.poojapath.customer"
compileSdk 35
ndkVersion "27.0.12077973"

compileOptions {
    sourceCompatibility JavaVersion.VERSION_11
    targetCompatibility JavaVersion.VERSION_11
}

kotlinOptions {
    jvmTarget = JavaVersion.VERSION_11.toString()
}

sourceSets {
    main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
    // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
    applicationId "com.poojapath.customer"
    // You can update the following values to match your application needs.
    // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
    minSdkVersion 24
    targetSdkVersion 35
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
}
signingConfigs {
    release {
        keyAlias keystoreProperties['keyAlias']
        keyPassword keystoreProperties['keyPassword']
        storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
        storePassword keystoreProperties['storePassword']
    }
}
buildTypes {
    release {
        signingConfig signingConfigs.debug
        minifyEnabled false
        shrinkResources false
    }
}
Enter fullscreen mode Exit fullscreen mode

}

flutter {
source '../..'
}

dependencies {

}

Collapse
 
zaid_syni_05ff81fb2cce5e1 profile image
Zaid syni

Thanks, it also helped, all the comments were helpful indeed.

Collapse
 
chittaranjan_nayak_c632ae profile image
Chittaranjan Nayak Smartters

Update your compile SDK

Collapse
 
zaid_syni_05ff81fb2cce5e1 profile image
Zaid syni

Would you mind telling me, that if I dont have a Pixel Real device how would I test that i Have reached compatibility or not. Since I dont think it would be a good idea to upload app and try if warning goes, since it would take so many updates.
Also if you can guide me through it will be helpful. Since on play console, agora and pdf dependencies show the culprits..

Thread Thread
 
chittaranjan_nayak_c632ae profile image
Chittaranjan Nayak Smartters

You can try with Android 15 beta emulators and aditionally run flutter build appbundle --analyze-size and then open the created JSON file in DevTools to visualize.

Thread Thread
 
zaid_syni_05ff81fb2cce5e1 profile image
Zaid syni

Thanks, this helped a lot!

Collapse
 
zaid_syni_05ff81fb2cce5e1 profile image
Zaid syni

Why you deleted my comment, without answering?

Collapse
 
chittaranjan_nayak_c632ae profile image
Chittaranjan Nayak Smartters

its still there and I have not deleted and I answered also

Collapse
 
zaid_syni_05ff81fb2cce5e1 profile image
Zaid syni

Actually somehow it disappeared for almost a day, so i thought. Maybe it was this website's glitch.

Thread Thread
 
syahrul_hajji_8a5e3d81c44 profile image
Syahrul Hajji

Lib : flutter_pdfview: ^1.4.1+1 update to flutter_pdfview: ^1.4.2-beta.1
that can be resolved ur problem.

Thread Thread
 
zaid_syni_05ff81fb2cce5e1 profile image
Zaid syni

Thanks, this helped

Thread Thread
 
sastha_sankarcj_52d0fbe profile image
SASTHA SANKAR C J

which is the least flutter version to use?
and also which u used?

Thread Thread
 
zaid_syni_05ff81fb2cce5e1 profile image
Zaid syni

dev.to/zaid_syni_05ff81fb2cce5e1/f...

Go through this, it will help you