software-mansion / react-native-reanimated

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

Compilation Failure in :react-native-reanimated:compileDebugJavaWithJavac (RN 0.74.0) #5928

Open keith212005 opened 2 months ago

keith212005 commented 2 months ago

Description

After upgrading RN version from 0.73.7 to 0.74.0, compilation fails in Android.

Steps to reproduce

  1. Upgrage RN version 0.73.7 to 0.74.0 (Before the upgrade everything was working fine)
  2. Got the above error when building for Android.
  3. Cleared Android build and cache.
  4. cleared metro cache.
  5. Still the same problem.

Screenshot 2024-04-22 at 7 52 41 PM

Screenshot 2024-04-22 at 8 12 43 PM

Snack or a link to a repository

https://snack.expo.io/

Reanimated version

3.8.1

React Native version

0.74.0

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native

Architecture

Paper (Old Architecture)

Build type

Debug app & dev bundle

Device

Android emulator

Device model

No response

Acknowledgements

Yes

github-actions[bot] commented 2 months 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?

mishenThakshana commented 2 months ago

Were you able to fix this? Still facing this issue

arasrezaei commented 2 months ago

use latest RC version

XavegX367 commented 2 months ago

I am getting the exact same error when trying to build for android, while iOS is just working fine...

mishenThakshana commented 2 months ago

I am getting the exact same error when trying to build for android, while iOS is just working fine...

Yeah me too

FernandoAOborges commented 2 months ago

Use rc release: "react-native-reanimated": "^3.9.0-rc.1"

mishenThakshana commented 2 months ago

Use rc release: "react-native-reanimated": "^3.9.0-rc.1"

This giving me react-native-screens error

jackiemacklein commented 2 months ago

Use rc release: "react-native-reanimated": "^3.9.0-rc.1"

solved it for me

yerros commented 2 months ago

Use rc release: "react-native-reanimated": "^3.9.0-rc.1"

yes, this work for me

XavegX367 commented 2 months ago

I am getting dependency issues with gorhom bottomsheets if I use this

Use rc release: "react-native-reanimated": "^3.9.0-rc.1"

migsandia-1984 commented 2 months ago

I am getting the exact same error when trying to build for android

Abby9111 commented 2 months ago

I am getting dependency issues with gorhom bottomsheets if I use this

Use rc release: "react-native-reanimated": "^3.9.0-rc.1"

me too

rick427 commented 2 months ago

Having the exact same issue

mishenThakshana commented 2 months ago

Use rc release: "react-native-reanimated": "^3.9.0-rc.1"

Giving errors with react-native-safe-area-context

keith212005 commented 2 months ago

Use rc release: "react-native-reanimated": "^3.9.0-rc.1"

Giving errors with react-native-safe-area-context

Update to latest version of react-native-safe-area-context

parthasarathi95 commented 2 months ago

Hey I am using "react-native-reanimated": "^3.9.0-rc.1", "react-native": "0.74.0" because of the Android issue. Currently, it's working on Android, but on iOS if I do goBack() or use the navigate function to go back to a previous page then the app is crashing. on Xcode its opening REAAnimationsManager.m and - (void)clearSharedTransitionConfigForTag:(NSNumber *)tag { _clearSharedTransitionConfigForTag(tag); <---- it's giving some error, I have attached the screenshot. }

Need help.

currently, I have commented out this line, _clearSharedTransitionConfigForTag(tag); It's working, but I am not sure if it will create any issues or not.

Screenshot 2024-04-25 at 8 41 56 PM
taksvals commented 2 months ago

Have the same issue Tried using "react-native-reanimated": "^3.9.0-rc.1" it fixed the problem, but now there is dependency conflict with @react-navigation/drawer Is there any information when this fix will be released?

amjadbouhouch commented 2 months ago

+1

rick427 commented 2 months ago

Installing "react-native-reanimated": "^3.9.0-rc.1" version will temporarily fix the build error but you'll get a lot conflicts with other libraries such as @gorhom/bottom-sheet, moti, @react-navigation/drawer etc .. essentially libs that depends on reanimated. :(

mishenThakshana commented 2 months ago

Update to "react-native-reanimated": "^3.9.0", and if you are using safe area context upgrade it to "react-native-safe-area-context": "^4.10.1", this will fix the problem