-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Can not build reanimated V3 on React Native 0.72.1 and Android "ld: error: undefined symbol: folly::dynamic::dynamic(folly::dynamic&&)" #4679
Comments
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
FYI I created a new project and tried reproducing that issue and got the error again... |
can you try with ndk |
Thank you so much! It worked. But I wonder why, as I've read on another websites this version accomplishes the M1 support. |
This happened to me when I updated the emulators to the latest versions on Android Studio, no clue why. I use M1 too |
@tomekzaw any idea why this could be happening? |
Ugh, dumb me. I can not get a release build now. Here is the log with the new NDK:
|
Also version |
What is ndk? I am getting same issue can you please explain |
I am having same issues in IOS |
NDK is used in Android builds. In my case there were not any issues with iOS. |
I'm having the same problem and mostly the same environment, except I have an intel chip not an M1 chip and I am on React Native 0.72.3. NDK 24.0.8215888 did not fix the issue. |
Do you use rosetta to building? |
Use this version of reanimated works perfectly |
paste this in ur package.json insted of normal version of reanimated and then npm i |
do letme know if it works |
Gonna try that when I arrive home. |
No. |
I am getting the same error. Thanks for the suggestion, though. |
@vishesh9096 Actually I realized that now I'm getting a very similar error, but not on the react-native-reanimated build task but rather on this task ( |
I am using react-native cli works perfectly |
On react-native-cli I get the same error again.
|
Do you get the error if you downgrade to reanimated v2 and React Native 0.71? |
No. Another project which depends on Reanimated V2 works just fine. |
I found this discussion on the expo discord which suggested that it's probably just a polluted cache for the similar expo error (with # Answer Y to all:
npx react-native-clean-project
cd android
rm -rf .gradle
# this will recursively force wipe any untracked files
git clean -dfx Then |
Tried that and it still does not work giving the same error. Very interesting... I've run the commands and even deleted ~/.gradle as the Discord thread suggests. One thing I am wondering is if I'll get the error that Expo user got building for Android. |
Yup. Got the same error, I think it is a local error then, not a problem about the lib. I'll try running these commands in different combinations 😄 |
I also used Expo Prebuild to fix some other build errors I was having, so you might want to try that. |
Hi! |
The same on me, i did everything (reinstall ndk, rm node_modules, rm gradle cache, reinstall...) but still not work Update: |
I was having a similar issue with undefined symbol on M1 MacBook when installing react-native-static-server and it was solved by updating the minSdkVersion: birdofpreyru/react-native-static-server#51 (comment) It might be completely unrelated though. |
Hello, guys! I'm pass for issue, which the frameProcessor can't turn because reanimated V3 is not installed, however, already installed reanimated. Too the plugin are issue. Can anyone help me? Follow my code: Imported: Code: const frameProcessor = useFrameProcessor((frame)=>{ runOnJS(setText)(data.result.text); useEffect(() => { console.log('Devices:', devices); const cameraDevice = devices.back; fetchCameraDevice(); return ( {device && ( )} ); Babel: dependencies: Error: let workletRuntime = null try { export const FrameProcessorContext = { This error too: throw new Error( type ValueUnpacker = WorkletFunction< ; if (DEV && IS_NATIVE) { export function getValueUnpackerCode() { Exist other lib which make this? I'm see which camera vision with many problems |
For me it was upgrading google-service to this: classpath("com.google.gms:google-services:4.3.15") |
Mine also has this upgrading, but it didn't work :( |
Using sudo worked for me too. But why? |
Using sudo worked for me too, and I found a solution for my environment. My
I'm not familiar with the C/C++ build system, but these seems to be common solutions for building C programs with packages installed by homebrew on Apple Silicon machines(such as M1). macos - Installing a C/C++ library with homebrew on M1 Macs - Ask Different |
I'm not having this variables, but this a hint for me |
Excellent! Works for me! |
It only compiles on my M1 with sudo. I suspect a change with cmake 3.22.1. |
This is due to the compiler system (CMake) find the wrong location for folly lib, before building, run command |
I also finally made it work with:
and then all the cleaning commands above:
..spent hours with it |
finally, I found a solution to this problem, you just need to remove the quotation marks in package.json which was originally ^3.10.0 to 3.10.0 |
The caret before the version means that the package can be auto updated by a minor/patch version. That means that your package was probably updated in yarn.lock and you though you had 3.10.0. So in other words you just reverted the version to the exact 3.10.0. If this fixes the problem then it means that any higher minor/patch version of 3.10.0 have some breaking changes. |
I have same issue.. Anyone can share me, sudo with what... I can't get the point I am in Mackbook m1 pro, Reproduce the issue:
then it will throw:
|
I got the sudo solution here, but don't know why.. |
Facing this issue in
|
Closing this issue due to inactivity. If you stumble upon a similar error, upgrade Reanimated to the latest supported version (current latest is 3.16.7) or try the solution described in #4679 (comment). |
Description
Can't build reanimated V3 on Android, getting an LD error complaining about an "undefined symbol".
I am using a MacBook Air M1.
Running macOS Ventura 13.4.1
NDK version: 23.1.7779620
React Native version: 0.72.1
Steps to reproduce
Snack or a link to a repository
Can not reproduce on other platforms
Reanimated version
3.3.0
React Native version
0.72.1
Platforms
Android, iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
Android emulator
Device model
AVD
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: