Couchbase Lite 16 KB page-size fix: upgrade to 3.2.3
Artifact com.couchbase.lite:couchbase-lite-android · Maintained by hermonLabs · last measured 1 Oct 2026 · methodology · all libraries
fixed
Couchbase Lite versions up to and including 3.2.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 3.2.3; the newest measured, 4.1.2, is aligned (16 KB).
15of 30 measured versions with native code ship 4 KB-aligned libraries
3.2.2: p_align = 4 KB (4096)3.2.3: 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:
3.x: upgrade to3.2.3
How the verdict was reached
In version order, the 37 measured versions of com.couchbase.lite:couchbase-lite-android run as 5 stretches: com.couchbase.lite:couchbase-lite-android:1.1.0 offending (4 KB-aligned) (1 measured); then com.couchbase.lite:couchbase-lite-android:1.2.0 to 1.4.4 without an arm64-v8a/x86_64 .so (7 measured); then com.couchbase.lite:couchbase-lite-android:2.0.0 to 2.5.0 aligned (16 KB) (4 measured); then com.couchbase.lite:couchbase-lite-android:2.5.2.1 to 3.2.2 offending (4 KB-aligned) (14 measured); then com.couchbase.lite:couchbase-lite-android:3.2.3 to 4.1.2 aligned (16 KB) (11 measured). Versions are ordered by number, not by publish date, because backports are released after newer lines.
The boundary is exact: 3.2.3 is the very next published version after the last offending 3.2.2.
By repository file date, the last offending file (3.2.2) is from 2025-03-15 and the first aligned file (3.2.3) is from 2025-04-30, a gap of 46 days. Both dates are file times, not vendor release announcements.
Measured files by the year of their repository date:
- 2015: 1 offending (4 KB-aligned)
- 2016: 4 without an arm64-v8a/x86_64 .so
- 2017: 2 without an arm64-v8a/x86_64 .so
- 2018: 2 aligned (16 KB), 1 without an arm64-v8a/x86_64 .so
- 2019: 2 aligned (16 KB), 2 offending (4 KB-aligned)
- 2020: 2 offending (4 KB-aligned)
- 2021: 2 offending (4 KB-aligned)
- 2022: 1 offending (4 KB-aligned)
- 2023: 2 offending (4 KB-aligned)
- 2024: 4 offending (4 KB-aligned)
- 2025: 4 aligned (16 KB), 1 offending (4 KB-aligned)
- 2026: 7 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
37 of 64 published versions of com.couchbase.lite:couchbase-lite-android were downloaded and read: 15 offending, 15 aligned, 7 with no arm64-v8a/x86_64 .so. Measured files date from 2015-06-23 to 2026-09-14. Newest first. Each version links to the file measured.
- 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: 1.x -> no aligned release measured after offending 1.1.0; 2.x -> no aligned release measured after offending 2.8.5; 2.5.0 was aligned before the regression; 3.x -> use measured aligned 3.2.3 (after offending 3.2.2). 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/arm64-v8a/libLiteCore.so- file date
- Sat, 15 Mar 2025 00:08:52 GMT
- source
- artifact
16 KBp_align 16384 = 2^14
- verdict
- exactly the 16 KB requirement
- library file
jni/arm64-v8a/libLiteCore.so- file date
- Wed, 30 Apr 2025 18:40:35 GMT
- source
- artifact
Native libraries inside the artifact
The newest measured version with native code is 4.1.2; the last offending one is 3.2.2. It ships 2 native libraries per ABI: libLiteCore.so, libLiteCoreJNI.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):
libLiteCore.so: 4 KB (offending) incom.couchbase.lite:couchbase-lite-android:3.1.2to3.2.2(6 versions); 16 KB (16 KB-compatible) incom.couchbase.lite:couchbase-lite-android:3.2.3to4.0.4(7 versions)libLiteCoreJNI.so: 64 KB (16 KB-compatible) incom.couchbase.lite:couchbase-lite-android:2.0.0to2.5.0(4 versions); 4 KB (offending) incom.couchbase.lite:couchbase-lite-android:2.5.2.1to3.2.2(14 versions); 16 KB (16 KB-compatible) incom.couchbase.lite:couchbase-lite-android:3.2.3to4.1.2(11 versions)libcom_couchbase_touchdb_RevCollator.so: 4 KB (offending) incom.couchbase.lite:couchbase-lite-android:1.1.0(1 version)libcom_couchbase_touchdb_TDCollateJSON.so: 4 KB (offending) incom.couchbase.lite:couchbase-lite-android:1.1.0(1 version)
| Library file | ABI | p_align @ 3.2.2 | p_align @ 4.1.2 |
|---|---|---|---|
libLiteCore.so | arm64-v8a | 4 KB | – |
libLiteCore.so | x86_64 | 4 KB | – |
libLiteCoreJNI.so | arm64-v8a | 4 KB | 16 KB |
libLiteCoreJNI.so | x86_64 | 4 KB | 16 KB |
The Gradle change
implementation("com.couchbase.lite:couchbase-lite-android:3.2.2")implementation("com.couchbase.lite:couchbase-lite-android:3.2.3")an aligned version, lowest measured above the last offending one; newer measured versions are aligned too (latest 4.1.2). Check: ./gradlew :app:dependencyInsight --dependency couchbase-lite-android --configuration releaseRuntimeClasspath // NON-MONOTONE: an aligned release can be followed by an offending one; do not assume newer is safe. Per-release-line guidance: 1.x -> no aligned release measured after offending 1.1.0; 2.x -> no aligned release measured after offending 2.8.5; 2.5.0 was aligned before the regression; 3.x -> use measured aligned 3.2.3 (after offending 3.2.2). Re-run the checker on the version you resolve
Method and sources
Measured from the published files in repo1.maven.org/maven2/com/couchbase/lite/couchbase-lite-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 (27 of 64; their status is unknown): 3.3.2, 3.3.1, 3.2.6, 3.2.4, 3.2.0-beta.2, 3.2.0, 3.1.11, 3.1.10, 3.1.8, 3.1.7, 3.1.3, 3.1.1, 3.1.0, 3.0.12, 3.0.5, 3.0.0-beta02, 3.0.0, 2.8.6, 2.8.4, 2.8.1, 2.7.1, 2.7.0, 2.6.2, 2.6.0, 2.5.2, 2.1.0, 2.0.2.
Related artifacts
- Filamentcom.google.android.filament:filament-android26 of 41 measured versions offending · fixed
- Filament utilscom.google.android.filament:filament-utils-android27 of 41 measured versions offending · fixed
- Filament gltfiocom.google.android.filament:gltfio-android26 of 41 measured versions offending · fixed
- Firebase Crashlytics NDKcom.google.firebase:firebase-crashlytics-ndk23 of 36 measured versions offending · fixed
- Flutter engine libflutter.so (per Flutter stable release; Gradle dependency is the `flutter` SDK version, not this coordinate)io.flutter:arm64_v8a_release19 of 45 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.