ONNX Runtime 16 KB page-size fix: upgrade to 1.21.1
Artifact com.microsoft.onnxruntime:onnxruntime-android · Maintained by hermonLabs · last measured 1 Oct 2026 · methodology · all libraries
fixed
ONNX Runtime versions up to and including 1.21.0 that we measured ship 4 KB-aligned native libraries (offending for Google Play's 16 KB page-size requirement). The first measured aligned stable version is 1.21.1; the newest measured, 1.30.0, is aligned (16 KB).
16of 31 measured versions with native code ship 4 KB-aligned libraries
1.21.0: p_align = 4 KB (4096)1.21.1: p_align = 16 KB (16384)Thin lines: 4 KB cells. Heavy lines: 16 KB page boundaries.
How the verdict was reached
In version order, the 31 measured versions of com.microsoft.onnxruntime:onnxruntime-android run as 2 stretches: com.microsoft.onnxruntime:onnxruntime-android:1.11.0 to 1.21.0 offending (4 KB-aligned) (16 measured); then com.microsoft.onnxruntime:onnxruntime-android:1.21.1 to 1.30.0 aligned (16 KB) (15 measured). Versions are ordered by number, not by publish date, because backports are released after newer lines.
The boundary is exact: 1.21.1 is the very next published version after the last offending 1.21.0.
By repository file date, the last offending file (1.21.0) is from 2025-03-07 and the first aligned file (1.21.1) is from 2025-04-21, a gap of 45 days. Both dates are file times, not vendor release announcements.
Measured files by the year of their repository date:
- 2022: 4 offending (4 KB-aligned)
- 2023: 7 offending (4 KB-aligned)
- 2024: 4 offending (4 KB-aligned)
- 2025: 4 aligned (16 KB), 1 offending (4 KB-aligned)
- 2026: 11 aligned (16 KB)
The offending versions fail on arm64-v8a and x86_64; Google's rule covers the 64-bit ABIs, so those are the two libraries the verdict reads.
Every version measured
31 of 38 published versions of com.microsoft.onnxruntime:onnxruntime-android were downloaded and read: 16 offending, 15 aligned, 0 with no arm64-v8a/x86_64 .so. Measured files date from 2022-03-25 to 2026-09-14. Newest first. Each version links to the file measured.
Measured evidence
4 KBp_align 4096 = 2^12
- verdict
- below the 16 KB requirement
- library file
jni/arm64-v8a/libonnxruntime4j_jni.so- file date
- Fri, 07 Mar 2025 21:58:51 GMT
- source
- artifact
16 KBp_align 16384 = 2^14
- verdict
- exactly the 16 KB requirement
- library file
jni/arm64-v8a/libonnxruntime.so- file date
- Mon, 21 Apr 2025 09:55:17 GMT
- source
- artifact
Native libraries inside the artifact
The newest measured version with native code is 1.30.0; the last offending one is 1.21.0. It ships 2 native libraries per ABI: libonnxruntime.so, libonnxruntime4j_jni.so. The verdict is the lowest p_align among them.
Lowest p_align of each native library file across the measured versions (in version order):
libonnxruntime.so: 4 KB (offending) incom.microsoft.onnxruntime:onnxruntime-android:1.11.0to1.19.0(14 versions); 16 KB (16 KB-compatible) incom.microsoft.onnxruntime:onnxruntime-android:1.20.0to1.30.0(17 versions)libonnxruntime4j_jni.so: 4 KB (offending) incom.microsoft.onnxruntime:onnxruntime-android:1.11.0to1.21.0(16 versions); 16 KB (16 KB-compatible) incom.microsoft.onnxruntime:onnxruntime-android:1.21.1to1.30.0(15 versions)
| Library file | ABI | p_align @ 1.21.0 | p_align @ 1.30.0 |
|---|---|---|---|
libonnxruntime.so | arm64-v8a | 16 KB | 16 KB |
libonnxruntime.so | x86_64 | 16 KB | 16 KB |
libonnxruntime4j_jni.so | arm64-v8a | 4 KB | 16 KB |
libonnxruntime4j_jni.so | x86_64 | 4 KB | 16 KB |
The Gradle change
implementation("com.microsoft.onnxruntime:onnxruntime-android:1.21.0")implementation("com.microsoft.onnxruntime:onnxruntime-android:1.21.1")an aligned version, lowest measured above the last offending one; newer measured versions are aligned too (latest 1.30.0). Check: ./gradlew :app:dependencyInsight --dependency onnxruntime-android --configuration releaseRuntimeClasspath
Method and sources
Measured from the published files in repo1.maven.org/maven2/com/microsoft/onnxruntime/onnxruntime-android/. How the verdicts are derived and what they do not cover: methodology. Google's requirement: Support 16 KB page sizes.
Published but not downloaded for this page (7 of 38; their status is unknown): 1.24.2, 1.23.2, 1.23.0-rc.2, 1.19.2, 1.18.0, 1.17.0, 1.16.1.
Related artifacts
- ONNX Runtime trainingcom.microsoft.onnxruntime:onnxruntime-training-android13 of 13 measured versions offending · no aligned release
- ObjectBoxio.objectbox:objectbox-android18 of 27 measured versions offending · fixed
- ObjectBox browserio.objectbox:objectbox-android-objectbrowser18 of 27 measured versions offending · fixed
- Oboecom.google.oboe:oboe10 of 13 measured versions offending · fixed
- OpenCVorg.opencv:opencv5 of 9 measured versions offending · fixed
See also the Play 16 KB warning, per stack · deadlines · check all your dependencies. Want every library offline? The kit ($12), 14-day refund.