ML Kit barcode-scanning (bundled): 16 KB fix is 17.3.0
Artifact com.google.mlkit:barcode-scanning · Maintained by hermonLabs · last measured 1 Oct 2026 · methodology · all libraries
fixed
ML Kit barcode-scanning (bundled) versions up to and including 17.2.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 17.3.0; the newest measured, 17.3.0, is aligned (16 KB).
14of 15 measured versions with native code ship 4 KB-aligned libraries
17.2.0: p_align = 4 KB (4096)17.3.0: 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 15 measured versions of com.google.mlkit:barcode-scanning run as 2 stretches: com.google.mlkit:barcode-scanning:16.0.0 to 17.2.0 offending (4 KB-aligned) (14 measured); then com.google.mlkit:barcode-scanning:17.3.0 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: 17.3.0 is the very next published version after the last offending 17.2.0.
By repository file date, the last offending file (17.2.0) is from 2023-08-01 and the first aligned file (17.3.0) is from 2024-08-07, a gap of 372 days. Both dates are file times, not vendor release announcements.
Measured files by the year of their repository date:
- 2020: 5 offending (4 KB-aligned)
- 2021: 5 offending (4 KB-aligned)
- 2022: 2 offending (4 KB-aligned)
- 2023: 2 offending (4 KB-aligned)
- 2024: 1 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
15 of 15 published versions of com.google.mlkit:barcode-scanning were downloaded and read: 14 offending, 1 aligned, 0 with no arm64-v8a/x86_64 .so. Measured files date from 2020-06-02 to 2024-08-07. 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/libbarhopper_v3.so- file date
- Tue, 01 Aug 2023 15:32:04 GMT
- source
- artifact
16 KBp_align 16384 = 2^14
- verdict
- exactly the 16 KB requirement
- library file
jni/arm64-v8a/libbarhopper_v3.so- file date
- Wed, 07 Aug 2024 01:22:15 GMT
- source
- artifact
Native libraries inside the artifact
The newest measured version with native code is 17.3.0; the last offending one is 17.2.0. It ships 1 native library per ABI: libbarhopper_v3.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):
libbarhopper_v2.so: 4 KB (offending) incom.google.mlkit:barcode-scanning:16.0.0to16.2.0(8 versions)libbarhopper_v3.so: 4 KB (offending) incom.google.mlkit:barcode-scanning:17.0.0to17.2.0(6 versions); 16 KB (16 KB-compatible) incom.google.mlkit:barcode-scanning:17.3.0(1 version)
| Library file | ABI | p_align @ 17.2.0 | p_align @ 17.3.0 |
|---|---|---|---|
libbarhopper_v3.so | arm64-v8a | 4 KB | 16 KB |
libbarhopper_v3.so | x86_64 | 4 KB | 16 KB |
The Gradle change
implementation("com.google.mlkit:barcode-scanning:17.2.0")implementation("com.google.mlkit:barcode-scanning:17.3.0")an aligned version, lowest measured above the last offending one; newer measured versions are aligned too (latest 17.3.0). Check: ./gradlew :app:dependencyInsight --dependency barcode-scanning --configuration releaseRuntimeClasspath
Method and sources
Measured from the published files in dl.google.com/android/maven2/com/google/mlkit/barcode-scanning/. How the verdicts are derived and what they do not cover: methodology. Google's requirement: Support 16 KB page sizes.
All 15 published versions were downloaded and measured.
Related artifacts
- ML Kit face-detection (bundled)com.google.mlkit:face-detection7 of 8 measured versions offending · fixed
- ML Kit translatecom.google.mlkit:translate7 of 8 measured versions offending · fixed
- MMKVcom.tencent:mmkv16 of 30 measured versions offending · fixed
- MMKV staticcom.tencent:mmkv-static16 of 30 measured versions offending · fixed
- MapLibreorg.maplibre.gl:android-sdk17 of 38 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.