16 KB page size incompatibility persists in AAR (libmodpdfium.so / libmodft2.so / libmodpng.so) despite README claim
Hello maintainers,
Thank you for your work on AndroidPdfViewer and for addressing the upcoming Android 15 / Google Play 16 KB page size requirement.
However, after integrating the current published artifact, I am still encountering Google Play 16 KB page size compatibility errors, specifically related to native libraries bundled in the AAR.
Environment
Library: com.github.barteksc:android-pdf-viewer:3.2.0-beta.1
Target SDK: Android 15 (API 35)
ABI: arm64-v8a
Build type: Release
Distribution: Google Play Console validation
Issue Description
Google Play reports the following error during upload:
"is not compatible with 16 KB devices. Some libraries have LOAD segments not aligned at 16 KB boundaries:"
lib/arm64-v8a/libmodft2.so lib/arm64-v8a/libmodpdfium.so lib/arm64-v8a/libmodpng.so
This results in the app being rejected for Android 15+ devices.
Investigation Results
The above .so files are bundled directly by android-pdf-viewer
File sizes are very small (~4 KB), suggesting stub or improperly built native binaries
Google Play’s 16 KB validation explicitly flags these libraries
No other native libraries are included in the app
Removing android-pdf-viewer removes the issue entirely
Expected Behavior
According to the README in this repository, 16 KB page size support is claimed to be fixed for Google Play compliance (Nov 1, 2025 requirement).
I would expect:
Native .so files to be rebuilt with proper alignment (e.g. -Wl,-z,max-page-size=16384)
The published AAR to pass Google Play’s 16 KB validation without errors
Actual Behavior
The currently published artifact still fails 16 KB page size validation
Google Play Console rejects the app
No workaround is possible via Gradle packaging options, since this is a binary-level issue
Questions
Is the 16 KB fix only applied when building the project manually, but not yet reflected in the published AAR?
Is there a newer artifact or alternative Maven coordinate that includes the rebuilt native libraries?
If not, is there an ETA for a fully 16 KB–compatible release?
I’m happy to provide:
APK / AAB samples
Google Play Console screenshots
Output from 16 KB alignment validation scripts
Thank you for your time and clarification.
Best regards.
same issue i am also getting.
same issue here!
i directly use the library inside my app and it's wworking don't use dependency download the project and import the module pdf viewer it works for me.
Same issue as above the .so files where built with 4kb size, they need to be rebuilt with 16kb to work
https://github.com/xposed73/AndroidPdfViewer one key solution
check https://github.com/HyntixHQ/HyntixPdfViewer