-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" lib/arm64-v8a/libfolly_runtime.so #42098
Comments
Duplicate of #40928 (comment) The issue is caused by using a mixture of libraries which are not compiled using the right NDK. In this case I believe the Tuya SDK you mention is not compiled with NDK 25, therefore you have this crash.
You should report this issue to them as there is nothing we can do to fix it. |
@karshTensor I'm facing the same issue using Tuya SDK. Did you manage to solve it? |
Partially Yes, let me explain. At the end ive figured out something else which i can use until i find the perfect solution which can work with latest version of RN(React Native). 2 -> For now, ive downgraded the project to RN 0.70.14 which works well with latest TUYA SDK. I hope this helps. Regards, |
Delete libc++_shared.so in the aar file in Tuya SDK, and then generate a new aar, which can solve the problem. The reason is that this .so is compiled inconsistently with the NDK that comes with RN. |
No need to rebuild third-party
as described in Patch to fix |
Description
I am working on a project which is in React Native and also we are using Tuya SDK in android module and then using Native modules we will use android functionality in React native project.
When im running app on android api level below 30. basically below android R it successfully gets installed but above or on app level 30 it installs and crash with the error.
UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" lib/arm64-v8a/libfolly_runtime.so
Version
"react": "18.2.0", "react-native": "0.73.1"
Have done a lot of research around the same These two links may also show similar concern.
SoLoader Issue React Native Vision Camera
Stackoverflow
Steps to reproduce
Make sure you install app on or above api level 30 android device.
React Native Version
0.73.1
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/karshTensor/mobidemo/tree/main/ReproducerApp
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: