[Bug report] Support 16kb page size in digital ink dependency
Hello
When checking ELF alignment for my app with com.google.mlkit:digital-ink-recognition:18.1.0 dependency, it reports as UNALIGNED when running check_elf_alignment.sh.
lib/arm64-v8a/libdigitalink.so: \e[31mUNALIGNED\e[0m (2**12)
lib/x86_64/libdigitalink.so: \e[31mUNALIGNED\e[0m (2**12)
I had seen issue #839 for language-id, which seems to be fixed in 2024. The digital ink dependency com.google.mlkit:digital-ink-recognition has not received any update past 2023.
The release which has 16kb page size support mentions no change in digital ink dependency.
Is there any task in the pipeline to get digital ink also updated? Thanks
Hey Is there any updates on this issue?
16kb support deadline for apps has now been announced to be Nov 1st 2025 - source
The Target SDK 35 deadline is probably near Aug 31 2025 - discussion
- same issue report by google play, base/lib/arm64-v8a/libdigitalink.so not support 16 KB.
- com.google.mlkit:digital-ink-recognition:18.1.0 . This is the sdk version
I'm using 'com.google.mlkit:segmentation-selfie:16.0.0-beta6' and I can confirm that armeabi-v7a and x86 does not support the 16KB page size
I am using implementation "com.google.mlkit:barcode-scanning:17.3.0" i am facing same issue \e[31mFound 2 unaligned libs (only arm64-v8a/x86_64 libs need to be aligned).\e[0m
Is there any updates on when this will be released? Other models part of mlkit also seem to have this issue (#947, #945).
same here, 17.3.0 kit - bumping for update o/
same issue here with "com.google.mlkit:barcode-scanning:17.3.0" - bumping for update.
Not sure why no one from Google has stepped in here regarding com.google.mlkit:barcode-scanning:17.3.0, but 16kb page alignment is useless for non 64-bit libraries. See my comment here.
The issue around libdigitalink.so sounds legitimate, however.
Bumping up. Any news on com.google.mlkit:digital-ink-recognition?
Still getting the issue:
The native library arm64-v8a/libdigitalink.so (from com.google.mlkit:digital-ink-recognition:18.1.0) is not 16 KB aligned
Same issue here. Digital ink does not work on devices targeting 15+ (16KB) and need to update target API level by August according to the warning by Google Play Store.
It's a essential part of the application, is there an alternative or a planned version release?
Thanks in advance
Same issue here
Facing same issue,
I am using com.google.mlkit:barcode-scanning:17.3.0 and found that
arm64-v8a and x86_64 are still NOT supports 16 KB Which is mandatory by Play Store in coming months.
However x86 and armeabi-v7a are 16 KB Supported
Facing same issue, I am using
com.google.mlkit:barcode-scanning:17.3.0and found thatarm64-v8aandx86_64are still NOT supports 16 KB Which is mandatory by Play Store in coming months. Howeverx86andarmeabi-v7aare 16 KB Supported
Hi pankaj89, com.google.mlkit:barcode-scanning:17.3.0 should already support 16 KB page size (release note). Could you double check this SDK standalone using check_ef_alignment.sh?
Is there any updates on the digital ink library 16Kb support? Soft deadline of August 31 is 13 days away.
Facing same issue, I am using
com.google.mlkit:barcode-scanning:17.3.0and found thatarm64-v8aandx86_64are still NOT supports 16 KB Which is mandatory by Play Store in coming months. Howeverx86andarmeabi-v7aare 16 KB SupportedHi pankaj89, com.google.mlkit:barcode-scanning:17.3.0 should already support 16 KB page size (release note). Could you double check this SDK standalone using check_ef_alignment.sh?
Confirming it is working as expected (All are 16kb), Thanks
Hello.
After updating mlkit dependencies version to latest, I still notice that there still one of mlkit "so" file remaining unaligned. It is "libtensorflowlite_jni.so" as UNALIGNED.
The libs I have used are below:
- com.google.mlkit:barcode-scanning:17.3.0
- com.google.mlkit:image-labeling-custom:17.0.3
- com.google.mlkit:face-detection:16.1.7
The newly released Digital Ink SDK (com.google.mlkit:digital-ink-recognition:19.0.0) should support 16 KB page size. https://developers.google.com/ml-kit/release-notes#august_29_2025
Can confirm the new release works fine and is 16KB aligned when checking with check_elf_alignment.sh.
Just a note for others using this SDK, The minimum SDK version seems to have been bumped from 21 to 23 with version 19.0.0.
A small chunk of our users are still on lollipop, Will have to figure out what to do for them.
The minimum supported SDK version for all newly released Google SDKs is now 23. I'll close the bug as the 16kb page size is resolved.
I'm using
'com.google.mlkit:segmentation-selfie:16.0.0-beta6'and I can confirm that armeabi-v7a and x86 does not support the 16KB page size
I'm using the same library (com.google.mlkit:segmentation-selfie:16.0.0-beta6) and running into the same issue with 16KB page size not being supported for armeabi-v7a and x86, However arm64-v8a and x86_64 does support 16Kb Page size . Have you been able to resolve this, or is there any known workaround/solution?
@suleman81 no i am also facing same issue , segmentation-selfie is not updated
@tapan-xenabler I’ve tested a solution that works for me.
Only the arm64-v8a and x86_64 libraries need to be aligned. If you’re doing this to comply with Google’s upcoming Play Store requirement
, you don’t need to worry about 32-bit architectures.
The 16 KB page size support is only required for 64-bit devices, so 32-bit architectures can be safely ignored even if they don’t align. Google Play will still accept the build.
@zhouyiself
I'm using com.google.android.gms:play-services-mlkit-subject-segmentation:16.0.0-beta1 and it doesn't support 16kb page size yet.
From Google Play Console:
Libraries that do not support 16 KB:
base/lib/arm64-v8a/libmlkit-segmentation.so
so even with this, the app is still using 16kb page size? because i check with base/lib/arm64-v8a/libbarhopper_v3.so utilized by jetified-barcode-scanning-17.2.0 then use by com.google.mlkit:barcode-scanning:17.2.0, if i am not misunderstanding.