software-mansion / react-native-reanimated

React Native's Animated library reimplemented
https://docs.swmansion.com/react-native-reanimated/
MIT License
8.61k stars 1.27k forks source link

Problems with react-native-reanimated v3.11.0 e react-native v 0.74.1 #6025

Closed lu0x43 closed 1 month ago

lu0x43 commented 1 month ago

Description

I'm use npm

BUILD FAILED error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug - PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ': react-native-reanimated:buildCMakeDebug[arm64-v8a]'. > com.adroid.ide.common.proccess.ProcessException: ninja: Entering directory `C:\ Users\ .... \node_modules\react-native-reanimated\android.cxx\Debug\5010ee3f\arm64-v8a' [0/2] [...]

Steps to reproduce

I have done npm start -- --reset-cache
I also configured my babel.config.js: module.exports = { presets: ['module:@react-native/babel-preset'], plugins: [ ['@babel/plugin-proposal-decorators', { legacy: true }], [ 'react-native-reanimated/plugin', { relativeSourceLocation: true, }, ], 'babel-plugin-macros', ], };

Snack or a link to a repository

https://stackoverflow.com/questions/57934866/react-native-reanimated-error-execution-failed-for-task-react-native-reanimat

Reanimated version

3.11.0

React Native version

0.74.1

Platforms

Android

JavaScript runtime

V8

Workflow

React Native

Architecture

Fabric (New Architecture)

Build type

None

Device

Android emulator

Device model

pixel 8 pro

Acknowledgements

Yes

github-actions[bot] commented 1 month ago

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?

iliapnmrv commented 1 month ago

hey! any updates on this?

piaskowyk commented 1 month ago

I'm not sure if V8 already supports react-native 0.74 🤔

dcboy commented 1 month ago

is the same with me

Execution failed for task ':react-native-reanimated:configureCMakeDebug[arm64-v8a]'.
[CXX1210] /Users/xxx/D/work/project-a/node_modules/react-native-reanimated/android/CMakeLists.txt debug|arm64-v8a : No compatible library found
szydlovsky commented 1 month ago

Hey guys (@devLucasCaetano @iliapnmrv @dcboy ) as @piaskowyk mentioned, the v8 js runtime doesn't support react-native 0.74 just yet. The 2.3.0 version (latest one) of v8 has been published 4 months ago and it added RN0.73 support back then. So, naturally, all you can do is downgrade your react-native version to 0.73.x