react-native-skia icon indicating copy to clipboard operation
react-native-skia copied to clipboard

🚨 URGENT: Pre-compiled `librnskia.so` is NOT 16KB aligned (Android 15 / Play Store Rejections)

Open rahaspur003 opened this issue 4 months ago • 2 comments

Description

With Android 15 officially enforcing 16 KB memory page sizes, react-native-skia is currently causing Google Play Console to flag production apps with fatal rejection warnings.

We conducted a deep-dive static analysis on our .aab bundles using the readelf -l utility. While React Native 0.79 and Expo 53 have responsibly updated their core C++ engines to 16KB (0x4000) alignments, the pre-compiled librnskia.so binary distributed via NPM is still hardcoded and compiled at the legacy 4KB (0x1000) alignment.

Because you distribute these binaries pre-compiled, we cannot recompile your C++ engine on our end. Apps utilizing Skia risk crashing on Android 15 devices running 16KB page sizes. Furthermore, even if we use the official Google workaround (android:extractNativeLibs="true"), the Play Console static analyzer still scans your outdated 4KB files and explicitly threatens to reject our app updates.

React Native Skia Version

v2.0.0-next.4

React Native Version

0.79.6

Using New Architecture

  • [x] Enabled

Steps to Reproduce

  1. Create a React Native / Expo project with @shopify/react-native-skia installed.
  2. Build an Android App Bundle (.aab) for production release.
  3. Unzip the .aab and extract librnskia.so from the native libraries folder.
  4. Run the command: readelf -l librnskia.so | grep -m 1 "LOAD"
  5. Observe the ELF alignment is 0x1000 (4KB) instead of the required 0x4000 (16KB).
  6. Upload the .aab to Google Play Console.
  7. Observe the fatal Policy Status error: "App must support 16 KB memory page sizes".

Snack, Code Example, Screenshot, or Link to Repository

The Fix Required: Please update your Android NDK build scripts immediately to pass the following linker flag to your compiler: -Wl,-z,max-page-size=16384

Please recompile librnskia.so, repackage your .aar, and release a hotfix to NPM. Entire deployment pipelines are currently blocked by Google Play Console because of this compilation flag oversight.

Image Image

rahaspur003 avatar Aug 04 '26 19:08 rahaspur003

Unfortunately v2.0.0-next.4 is a version of RN Skia that is more than 2 years old. Upgrading will fix the issue (and newer versions of RN Skia are much more stable and faster). I'm closing this issue since I don't think there are any actionable items on my side, but let me know if there is something I can help with.

wcandillon avatar Aug 05 '26 07:08 wcandillon

I fix this 16KB Play Store rejection for $99 in 24h. Your libjingle .so is 4KB (0x1000), Play now requires 0x4000 from Nov 1 2025. I rebuild with NDK r28 + AGP 8.5.1 + -z max-page-size=16384. I deliver fixed AAB ready for Play Console. DM: botrescue.online - PayPal upfront, 24h delivery.

hgelectricidad35-cloud avatar Sep 02 '26 15:09 hgelectricidad35-cloud