Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random build error ld: error: undefined symbol: RNJsi::JsiHostObject::JsiHostObject() #2708

Open
redbluenat opened this issue Oct 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@redbluenat
Copy link

redbluenat commented Oct 28, 2024

Description

Issue
I'm experiencing a recurring Android build error that appears whenever I add or update a dependency in package.json. The error sometimes disappears after multiple attempts but is otherwise persistent.

Environment
@shopify/react-native-skia: 1.4.2
react-native: 0.73.9
"react-native-reanimated": "3.14.0",
"react-native-skottie": "2.1.4",

buildToolsVersion = "34.0.0"
minSdkVersion = 26
compileSdkVersion = 34
targetSdkVersion = 34

Error Message

ld: error: undefined symbol: RNJsi::JsiHostObject::JsiHostObject()
>>> referenced by JsiSkHostObjects.h:23 
CMakeFiles

Version

1.4.2

Steps to reproduce

Steps to Reproduce
Add or update any dependency in package.json.
Run the Android build in the release mode
Observe the error output

Snack, code example, screenshot, or link to a repository

Image

@redbluenat redbluenat added the bug Something isn't working label Oct 28, 2024
@wcandillon
Copy link
Contributor

@redbluenat Thank you for this report. The instructions provided are unfortunately not enough for us to reproduce the issue. Any chance you could share a small repository that contains a react native app where we could reproduce the compile error on?

@redbluenat
Copy link
Author

This seems related to caching, as it occurs locally but not in the pipeline, which makes it challenging to create the repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants