16KB page size compatibility on Android
16 KB Google Play compatibility requirement:
Starting November 1st, 2025, all new apps and updates to existing apps submitted to Google Play and targeting Android 15+ devices must support 16 KB page sizes on 64-bit devices.
is this project abandoned?
Hi, I also meet this problem and it's my solve
- $git https://github.com/k2-fsa/sherpa-onnx/
- $./build-android-arm64-v8a.sh (You also can find the build example at here )
You will find the 16KB page-aligned libonnxruntime.so in sherpa-onnx/build-android-arm64-v8a/1.17.1/jni/arm64-v8a
Final ,Replace file which under the /Users/user/.pub-cache/hosted/pub.dev/onnxruntime-1.4.1/android/src/main/jniLibs
For the building setting
target_dir=/Users/user/Library/Android/sdk
export ANDROID_SDK_ROOT=$target_dir
export PATH=$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$PATH
export ANDROID_HOME=$target_dir
export PATH=$ANDROID_SDK_ROOT/emulator:$PATH
export PATH=$ANDROID_SDK_ROOT/platform-tools:$PATH
export PATH=$ANDROID_SDK_ROOT/build-tools/35.0.0:$PATH
export ANROID_NDK_HOME=$ANDROID_SDK_ROOT/ndk/27.0.12077973
export PATH=$ANDROID_NDK_ROOT:$PATH
export ANDROID_NDK=$ANROID_NDK_HOME
cd sherpa-onnx
./build-android-arm64-v8a.sh
Any updates on this?
Any updates on this?
https://github.com/gtbluesky/onnxruntime_flutter/issues/47#issuecomment-3309776378
already posted a fix. Have you tried it? @singhpratham72
used #48 and the fix from above to make a fixed package, hope it works for you too https://pub.dev/packages/onnxruntime_v2
used #48 and the fix from above to make a fixed package, hope it works for you too https://pub.dev/packages/onnxruntime_v2
Note this requires flutter >= 3.7, so if you do not wanna upgrade, you can simply copy binaries from onnxruntime_v2 into onnxruntime.