I am building a Flutter Android application and noticed that the generated APK contains the native library:
libdatastore_shared_counter.so
When analyzing the APK using Android Studio APK Analyzer, the following warning appears:
libdatastore_shared_counter.so does not support 16 KB page size
RELRO is not a suffix and its end is not 16 KB aligned
This affects the following architectures:
arm64-v8a
x86_64
This warning appears when targeting newer versions of Android that support 16 KB memory page size.
Environment
Flutter version
Flutter 3.41.0 (stable)
Android configuration
compileSdk = 36
targetSdk = 36
AGP = 9.0.1
Gradle = 8.14
Kotlin = 2.3.10
NDK = 29.0.14206865
JDK = 21
Observed Behavior
Even after:
Forcing newer AndroidX DataStore versions
Excluding DataStore dependencies
Cleaning Gradle caches
Rebuilding the project
The APK still contains:
libdatastore_shared_counter.so
The library appears to originate from **AndroidX DataStore artifacts used by Flutter plugins (likely shared_preferences_android).
Because the .so file is bundled inside an .aar, Gradle exclusion rules do not remove it.
Expected Behavior
The generated Flutter Android APK should not include native libraries that:
Do not support 16 KB page size. Are not required for Flutter applications
Since Flutter apps run in a single process, the DataStore shared counter native library appears unnecessary.
Is this a known issue related to AndroidX DataStore being used by Flutter plugins, and are there plans to rebuild the library with 16 KB page alignment support?
Let me know required steps for this

I am building a Flutter Android application and noticed that the generated APK contains the native library:
libdatastore_shared_counter.so
When analyzing the APK using Android Studio APK Analyzer, the following warning appears:
libdatastore_shared_counter.so does not support 16 KB page size
RELRO is not a suffix and its end is not 16 KB aligned
This affects the following architectures:
arm64-v8a
x86_64
This warning appears when targeting newer versions of Android that support 16 KB memory page size.
Environment
Flutter version
Flutter 3.41.0 (stable)
Android configuration
compileSdk = 36
targetSdk = 36
AGP = 9.0.1
Gradle = 8.14
Kotlin = 2.3.10
NDK = 29.0.14206865
JDK = 21
Observed Behavior
Even after:
Forcing newer AndroidX DataStore versions
Excluding DataStore dependencies
Cleaning Gradle caches
Rebuilding the project
The APK still contains:
libdatastore_shared_counter.so
The library appears to originate from **AndroidX DataStore artifacts used by Flutter plugins (likely shared_preferences_android).
Because the .so file is bundled inside an .aar, Gradle exclusion rules do not remove it.
Expected Behavior
The generated Flutter Android APK should not include native libraries that:
Do not support 16 KB page size. Are not required for Flutter applications
Since Flutter apps run in a single process, the DataStore shared counter native library appears unnecessary.
Is this a known issue related to AndroidX DataStore being used by Flutter plugins, and are there plans to rebuild the library with 16 KB page alignment support?
Let me know required steps for this