16KB Page Size Incompatibility in librealm-jni.so with React Native 77.3
T-EnhancementO-Community
### Problem
**Environment:**
- React Native Version: 77.3
- Hermes Engine: Enabled
- New Architecture: Disabled
- Realm Version: v20.1.0
**Issue:**
When attempting to publish the app on Google Play Console, the build is rejected due to the 16KB page size requirement. The following libraries are causing the issue:
- `base/lib/arm64-v8a/librealm-jni.so`
- `base/lib/x86_64/librealm-jni.so`
**Attempts to Resolve:**
- Tried adding `-Wl,-z,max-page-size=16384` in the CMake configurations. This resolved the issue for `librealm.so` but not for `librealm-jni.so`. We also tried Realm version 20.2.0 with the New Architecture enabled. This version did fix the 16KB issue for `librealm.so`, but `librealm-jni.so` still remains incompatible and leads to build rejection on Google Play Console.
But our requirement is new Architecture must be disabled, we can't not enable it.
**Expected Outcome:**
A fully 16KB compatible build for both `librealm.so` and `librealm-jni.so` that meets Google Play's requirements.
**Request:**
Please provide guidance or an update that resolves this incompatibility.
Thank you!
### Solution
_No response_
### Alternatives
_No response_
### How important is this improvement for you?
-- select --
### Feature would mainly be used with
-- select --
关闭于 2025-11-21 1 条评论