onnxruntime_flutter icon indicating copy to clipboard operation
onnxruntime_flutter copied to clipboard

16KB page size compatibility on Android

Open androidfordeveloplife-oss opened this issue 3 months ago • 5 comments

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

  1. $git https://github.com/k2-fsa/sherpa-onnx/
  2. $./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

Image

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

juirmin avatar Sep 18 '25 21:09 juirmin

Any updates on this?

singhpratham72 avatar Oct 06 '25 11:10 singhpratham72

Any updates on this?

https://github.com/gtbluesky/onnxruntime_flutter/issues/47#issuecomment-3309776378

already posted a fix. Have you tried it? @singhpratham72

csukuangfj avatar Oct 07 '25 13:10 csukuangfj

used #48 and the fix from above to make a fixed package, hope it works for you too https://pub.dev/packages/onnxruntime_v2

Persie0 avatar Oct 07 '25 20:10 Persie0

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.

mhamdanx avatar Dec 04 '25 05:12 mhamdanx