OpenCV 16 KB page-size fix: upgrade to 5.0.0.1
Artifact org.opencv:opencv · Maintained by hermonLabs · last measured 1 Oct 2026 · methodology · all libraries
fixed
OpenCV versions up to and including 5.0.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 5.0.0.1; the newest measured, 5.0.0.1, is aligned (16 KB).
5of 9 measured versions with native code ship 4 KB-aligned libraries
5.0.0: p_align = 4 KB (4096)5.0.0.1: p_align = 16 KB (16384)Thin lines: 4 KB cells. Heavy lines: 16 KB page boundaries.
Per-major-line fixes
Different major versions have separate fix paths:
4.x: upgrade to4.12.05.x: upgrade to5.0.0.1
How the verdict was reached
In version order, the 9 measured versions of org.opencv:opencv run as 4 stretches: org.opencv:opencv:4.9.0 to 4.11.0 offending (4 KB-aligned) (4 measured); then org.opencv:opencv:4.12.0 to 4.14.0 aligned (16 KB) (3 measured); then org.opencv:opencv:5.0.0 offending (4 KB-aligned) (1 measured); then org.opencv:opencv:5.0.0.1 aligned (16 KB) (1 measured). Versions are ordered by number, not by publish date, because backports are released after newer lines.
The boundary is exact: 5.0.0.1 is the very next published version after the last offending 5.0.0.
By repository file date, the last offending file (5.0.0) is from 2026-06-11 and the first aligned file (5.0.0.1) is from 2026-06-26, a gap of 15 days. Both dates are file times, not vendor release announcements.
Measured files by the year of their repository date:
- 2023: 1 offending (4 KB-aligned)
- 2024: 2 offending (4 KB-aligned)
- 2025: 1 offending (4 KB-aligned), 1 aligned (16 KB)
- 2026: 3 aligned (16 KB), 1 offending (4 KB-aligned)
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
9 of 9 published versions of org.opencv:opencv were downloaded and read: 5 offending, 4 aligned, 0 with no arm64-v8a/x86_64 .so. Measured files date from 2023-12-28 to 2026-07-21. Newest first. Each version links to the file measured.
| Coordinate (group:artifact:version) | File date | Result | arm64-v8a p_align | x86_64 p_align |
|---|---|---|---|---|
org.opencv:opencv:5.0.0.1 | 2026-06-26 | aligned | 16 KB | 16 KB |
org.opencv:opencv:5.0.0 | 2026-06-11 | offending | 4 KB | 4 KB |
org.opencv:opencv:4.14.0 | 2026-07-21 | aligned | 16 KB | 16 KB |
org.opencv:opencv:4.13.0 | 2026-01-22 | aligned | 16 KB | 16 KB |
org.opencv:opencv:4.12.0 | 2025-07-08 | aligned | 16 KB | 16 KB |
org.opencv:opencv:4.11.0 | 2025-01-16 | offending | 4 KB | 4 KB |
org.opencv:opencv:4.10.0-kleidicv | 2024-07-11 | offending | 4 KB | 4 KB |
org.opencv:opencv:4.10.0 | 2024-06-07 | offending | 4 KB | 4 KB |
org.opencv:opencv:4.9.0 | 2023-12-28 | offending | 4 KB | 4 KB |
- Non-monotone history. An aligned stable release exists before a later offending one (parallel release lines or backports). A higher version number does not guarantee alignment: pick your exact version and measure it. The version below is only the lowest aligned stable version above the highest offending one.
- NON-MONOTONE: an aligned release can be followed by an offending one; do not assume newer is safe. Per-release-line guidance: 4.x -> use measured aligned 4.12.0 (after offending 4.11.0); 5.x -> use measured aligned 5.0.0.1 (after offending 5.0.0). Re-run the checker on the version you resolve
Measured evidence
4 KBp_align 4096 = 2^12
- verdict
- below the 16 KB requirement
- library file
jni/x86_64/libc++_shared.so- file date
- Thu, 11 Jun 2026 06:34:30 GMT
- source
- artifact
16 KBp_align 16384 = 2^14
- verdict
- exactly the 16 KB requirement
- library file
prefab/modules/opencv_java5/libs/android.x86_64/libopencv_java5.so- file date
- Fri, 26 Jun 2026 15:10:30 GMT
- source
- artifact
Native libraries inside the artifact
The newest measured version with native code is 5.0.0.1; the last offending one is 5.0.0. It ships 2 native libraries per ABI: libc++_shared.so, libopencv_java5.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):
libc++_shared.so: 4 KB (offending) inorg.opencv:opencv:4.9.0to4.11.0(4 versions); 16 KB (16 KB-compatible) inorg.opencv:opencv:4.12.0to4.14.0(3 versions); 4 KB (offending) inorg.opencv:opencv:5.0.0(1 version); 16 KB (16 KB-compatible) inorg.opencv:opencv:5.0.0.1(1 version)libopencv_java4.so: 4 KB (offending) inorg.opencv:opencv:4.9.0to4.10.0-kleidicv(3 versions); 16 KB (16 KB-compatible) inorg.opencv:opencv:4.11.0to4.14.0(4 versions)libopencv_java5.so: 16 KB (16 KB-compatible) inorg.opencv:opencv:5.0.0to5.0.0.1(2 versions)
| Library file | ABI | p_align @ 5.0.0 | p_align @ 5.0.0.1 |
|---|---|---|---|
libc++_shared.so | arm64-v8a | 4 KB | 16 KB |
libc++_shared.so | x86_64 | 4 KB | 16 KB |
libopencv_java5.so | arm64-v8a | 16 KB | 16 KB |
libopencv_java5.so | x86_64 | 16 KB | 16 KB |
The Gradle change
implementation("org.opencv:opencv:5.0.0")implementation("org.opencv:opencv:5.0.0.1")an aligned version, lowest measured above the last offending one; newer measured versions are aligned too (latest 5.0.0.1). Check: ./gradlew :app:dependencyInsight --dependency opencv --configuration releaseRuntimeClasspath // NON-MONOTONE: an aligned release can be followed by an offending one; do not assume newer is safe. Per-release-line guidance: 4.x -> use measured aligned 4.12.0 (after offending 4.11.0); 5.x -> use measured aligned 5.0.0.1 (after offending 5.0.0). Re-run the checker on the version you resolve
Method and sources
Measured from the published files in repo1.maven.org/maven2/org/opencv/opencv/. How the verdicts are derived and what they do not cover: methodology. Google's requirement: Support 16 KB page sizes.
All 9 published versions were downloaded and measured.
Related artifacts
- OpenCV (quickbirdstudios)com.quickbirdstudios:opencv12 of 12 measured versions offending · no aligned release
- pdfiumandroidio.legere:pdfiumandroid14 of 21 measured versions offending · fixed
- ExecuTorchorg.pytorch:executorch-android11 of 26 measured versions offending · fixed
- fbjnicom.facebook.fbjni:fbjni10 of 13 measured versions offending · fixed
- React Native react-androidcom.facebook.react:react-android20 of 77 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.