ML Kit translate 16 KB page-size fix: upgrade to 17.0.3
Artifact com.google.mlkit:translate · Maintained by hermonLabs · last measured 1 Oct 2026 · methodology · all libraries
fixed
ML Kit translate versions up to and including 17.0.2 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.0.3; the newest measured, 17.0.3, is aligned (16 KB).
7of 8 measured versions with native code ship 4 KB-aligned libraries
17.0.2: p_align = 4 KB (4096)17.0.3: 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 8 measured versions of com.google.mlkit:translate run as 2 stretches: com.google.mlkit:translate:16.0.0 to 17.0.2 offending (4 KB-aligned) (7 measured); then com.google.mlkit:translate:17.0.3 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.0.3 is the very next published version after the last offending 17.0.2.
By repository file date, the last offending file (17.0.2) is from 2023-11-06 and the first aligned file (17.0.3) is from 2024-08-07, a gap of 275 days. Both dates are file times, not vendor release announcements.
Measured files by the year of their repository date:
- 2020: 3 offending (4 KB-aligned)
- 2021: 1 offending (4 KB-aligned)
- 2022: 2 offending (4 KB-aligned)
- 2023: 1 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
8 of 8 published versions of com.google.mlkit:translate were downloaded and read: 7 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.
| Coordinate (group:artifact:version) | File date | Result | arm64-v8a p_align | x86_64 p_align |
|---|---|---|---|---|
com.google.mlkit:translate:17.0.3 | 2024-08-07 | aligned | 16 KB | 16 KB |
com.google.mlkit:translate:17.0.2 | 2023-11-06 | offending | 4 KB | 4 KB |
com.google.mlkit:translate:17.0.1 | 2022-08-16 | offending | 4 KB | 4 KB |
com.google.mlkit:translate:17.0.0 | 2022-01-25 | offending | 4 KB | 4 KB |
com.google.mlkit:translate:16.1.2 | 2021-03-30 | offending | 4 KB | 4 KB |
com.google.mlkit:translate:16.1.1 | 2020-08-25 | offending | 4 KB | 4 KB |
com.google.mlkit:translate:16.1.0 | 2020-07-01 | offending | 4 KB | 4 KB |
com.google.mlkit:translate:16.0.0 | 2020-06-02 | offending | 4 KB | 4 KB |
Measured evidence
4 KBp_align 4096 = 2^12
- verdict
- below the 16 KB requirement
- library file
jni/arm64-v8a/libtranslate_jni.so- file date
- Mon, 06 Nov 2023 18:44:27 GMT
- source
- artifact
16 KBp_align 16384 = 2^14
- verdict
- exactly the 16 KB requirement
- library file
jni/arm64-v8a/libtranslate_jni.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.0.3; the last offending one is 17.0.2. It ships 1 native library per ABI: libtranslate_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):
libtranslate_jni.so: 4 KB (offending) incom.google.mlkit:translate:16.0.0to17.0.2(7 versions); 16 KB (16 KB-compatible) incom.google.mlkit:translate:17.0.3(1 version)
| Library file | ABI | p_align @ 17.0.2 | p_align @ 17.0.3 |
|---|---|---|---|
libtranslate_jni.so | arm64-v8a | 4 KB | 16 KB |
libtranslate_jni.so | x86_64 | 4 KB | 16 KB |
The Gradle change
implementation("com.google.mlkit:translate:17.0.2")implementation("com.google.mlkit:translate:17.0.3")an aligned version, lowest measured above the last offending one; newer measured versions are aligned too (latest 17.0.3). Check: ./gradlew :app:dependencyInsight --dependency translate --configuration releaseRuntimeClasspath
Method and sources
Measured from the published files in dl.google.com/android/maven2/com/google/mlkit/translate/. How the verdicts are derived and what they do not cover: methodology. Google's requirement: Support 16 KB page sizes.
All 8 published versions were downloaded and measured.
Related artifacts
- ML Kit barcode-scanning (bundled)com.google.mlkit:barcode-scanning14 of 15 measured versions offending · fixed
- ML Kit face-detection (bundled)com.google.mlkit:face-detection7 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.