google_ml_kit_flutter icon indicating copy to clipboard operation
google_ml_kit_flutter copied to clipboard

[google_mlkit_entity_extraction] Release dev solve solve Android 16 KB Issue

Open test0terter0n opened this issue 3 months ago • 10 comments

Describe your issue. If applicable, add screenshots to help explain your problem.

Currently we see the 16 KB Warning using latest google_mlkit_entity_extraction. If we use reference the current develop instead of the official 0.15 release, the warning is disappeared. It seems that https://github.com/flutter-ml/google_ml_kit_flutter/pull/806 did resolve the issue. Plz release an updated version of google_mlkit_entity_extraction.

Steps to reproduce.

  1. Upload aab to PlayStore
  2. Check 'Memory page size' -> 'Does not support 16 KB'

What is the expected result?

Should support 16 KB Page Size.

Did you try our example app?

No

Is it reproducible in the example app?

No

Reproducible in which OS?

Android

Flutter/Dart Version?

Flutter 3.32.8

Plugin Version?

google_mlkit_entity_extraction: ^0.15.0

test0terter0n avatar Oct 09 '25 07:10 test0terter0n

any updates ?

AlaaQutishat avatar Oct 15 '25 18:10 AlaaQutishat

Please! update google_ml_kit_flutter for flutter

namdv93 avatar Oct 22 '25 07:10 namdv93

Hi, thank you for maintaining this awesome plugin! I'm also facing the 16 KB issue on Android and waiting for the fix mentioned here. Any updates or ETA on when this will be addressed in the next release? Appreciate all your hard work!

akutamata avatar Oct 22 '25 08:10 akutamata

@fbernaly any update? Thanks.

ismail-mufin avatar Oct 24 '25 08:10 ismail-mufin

Describe your issue. If applicable, add screenshots to help explain your problem.

Currently we see the 16 KB Warning using latest google_mlkit_entity_extraction. If we use reference the current develop instead of the official 0.15 release, the warning is disappeared. It seems that #806 did resolve the issue. Plz release an updated version of google_mlkit_entity_extraction.

Steps to reproduce.

  1. Upload aab to PlayStore
  2. Check 'Memory page size' -> 'Does not support 16 KB'

What is the expected result?

Should support 16 KB Page Size.

Did you try our example app?

No

Is it reproducible in the example app?

No

Reproducible in which OS?

Android

Flutter/Dart Version?

Flutter 3.32.8

Plugin Version?

google_mlkit_entity_extraction: ^0.15.0

======================

My Project flutter:

  • flutter: 3.32.4
  • Android:
    • NDK = "29.0.14206865" (NDK must above 28r)
    • Grader Wrapper: distributionUrl=https://services.gradle.org/distributions/gradle-8.7-all.zip
    • plugin(setting.gradle): id "com.android.application" version "8.6.0" apply false

You can update in $HOME/.pub-cache/hosted/pub.dev/google_mlkit_barcode_scanning-0.12.0/android/build.gradle,

Best Practice install package (google_mlkit_barcode_scanning) locally and modify part build.gradle

We can use tool that use Android Studio and shellscript these two tools can pre-validate verify pass 16KB page size, furthur information you check here

I try to use shellscirpt and Android Studio result look like ok Image

But When I upload aab file to play console:

Image

So below is the solution I try check all dependency I used in my project then I found something interesting in these two dependency => google_mlkit_barcode_scanning and google_mlkit_commons:

Image

Then:

group 'com.google_mlkit_barcode_scanning'
version '1.0'

buildscript {
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:7.4.2'
    }
}

rootProject.allprojects {
    repositories {
        google()
        mavenCentral()
    }
}

apply plugin: 'com.android.library'

android {
    // Conditional for compatibility with AGP <4.2.
    if (project.android.hasProperty("namespace")) {
        namespace 'com.google_mlkit_barcode_scanning'
    }
    
    compileSdk 34

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    defaultConfig {
        minSdkVersion 21
    }
}

dependencies {
    //noinspection Aligned16KB
    implementation 'com.google.mlkit:barcode-scanning:17.3.0'
}

Result in Play Console:

Before Fix:

Image

After Fix:

Image

Hope my small comment can help you !

leavchandara avatar Oct 25 '25 09:10 leavchandara

@test0terter0n Any Update on this? Anybody working for a new release?

AbhiCodebugger avatar Nov 07 '25 05:11 AbhiCodebugger

@AbhiCodebugger I did not see any activity. we use fork of current dev version

test0terter0n avatar Nov 18 '25 06:11 test0terter0n

@test0terter0n do you have version which solving the 16KB issue you can share?

Yaronkr avatar Nov 18 '25 08:11 Yaronkr

@Yaronkr just fork current dev ;) https://github.com/flutter-ml/google_ml_kit_flutter/pull/806 is already merged

test0terter0n avatar Nov 18 '25 08:11 test0terter0n

@test0terter0n great, thanks for sharing.

Yaronkr avatar Nov 18 '25 08:11 Yaronkr

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Dec 18 '25 12:12 github-actions[bot]