Skip to content

[Bug] Native .so files (e.g., libface_detector_v2.jni.so) not aligned for 16 KB page size (Android 15+) #813

@flutter-developer-105

Description

@flutter-developer-105

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

The google_mlkit_face_detection package (v0.13.1) bundles native ML Kit libraries that are not aligned to 16 KB page sizes, causing APK Analyzer warnings and potential Play Store rejections after November 1, 2025. This affects Android 15+ (API 35+) apps.

Please update in the next release.

Steps to reproduce.

  1. Add google_mlkit_face_detection: ^0.13.1 to pubspec.yaml.
  2. Run flutter build apk --release.
  3. Analyze the APK (Build > Analyze APK) - .so files like libface_detector_v2.jni.so show "No" with "16 KB zip/64 KB LOAD section".

What is the expected result?

Native libraries should be rebuilt with NDK r28+ and -Wl,-z,max-page-size=16384 in linker flags.

Did you try our example app?

No

Is it reproducible in the example app?

No

Reproducible in which OS?

Android

Flutter/Dart Version?

  • Flutter SDK: 3.35.3
  • AGP: 8.7.3
  • NDK: r29.0.13846066 rc3

Plugin Version?

google_mlkit_face_detection: ^0.13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions