Local Android Build Failed - Errors coming from react-native-nitro-modules, react-native-skia, react-native-screens and react-native-worklets. #3922
|
Hey everyone, I've been running into a local Android build error when using react-native-nitro-modules, react-native-skia, react-native-screens and react-native-worklets in my project. I've tested a local build on web and it's working fine. I'm unsure whether the error is coming from a react native module or if its a C++/CMake related error when building for Android. The attached build log and package.json are below: System SpecsMSI Katana 15 B13VGK Build Log Showing Errorspackage.jsonYou're more than welcome to contribute to my repo (https://github.com/Tommy-2000/dreamStudy-Student) to test and debug iOS functionality and Skia rendering in a new PR if you have any spare time. You can also reach me at dreamdev.tommy.2000@outlook.com to further discuss any changes and recommendations for my project. Thank you very much for your help! 🙂👍 |
Replies: 4 comments 2 replies
|
Unfortunately I am not a Windows user so it will be hard for me to debug this. Could this be related to the JDK version you use on Windows? |
|
I upgraded the Expo SDK from v55 to v56 and nothing changed there. It definitely looks like a CMake/Ninja problem on my machine or an issue with native packages when compiling C++ code on windows. If anyone is working with react-native-skia on windows, have you had this problem with CMake before when building react native apps? Anyone is more than welcome to clone my repo https://github.com/Tommy-2000/dreamStudy-Student and test it on their machine for any build or performance errors I might have missed. Thank you very much! 🙂👍 |
|
I solved it now, |
|
I'm glad it worked out :)
…On Mon, Jul 13, 2026 at 8:39 PM Thomas Popham ***@***.***> wrote:
Closed #3922
<#3922> as
resolved.
—
Reply to this email directly, view it on GitHub
<#3922?email_source=notifications&email_token=AACKXVXSPHKPZ7WKNZZU5L35EUUF5A5CNFSNUABTM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SFOZSW45B2HJHG65DJMZUWGYLUNFXW4LZSG4YTEMRQGSTHEZLBONXW5J3DN5WW2ZLOOSSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKXVTTX3NFIDFVLRVGYMD5EUUF5AVCNFSNUABIKJSXA33TNF2G64TZHM2DENJYGQ2TGMRVHNCGS43DOVZXG2LPNY5TCMBTG44TGNBTUF3AE>
.
You are receiving this because you commented.Message ID:
<Shopify/react-native-skia/repo-discussions/3922/discussion_event/2712204@
github.com>
|
I solved it now,
nodeLinker: hoistedin .npmrc wasn't recognised by pnpm following an update. So I moved it to the pnpm-workspace.yaml and CMake is now compiling successfully. See this for more info: expo/expo#40963. Something to keep in mind for anyone using pnpm when building with skia. Thank you very much! 🙂👍