react-native-reanimated: RN 0.74.0: error: cannot find symbol super.replaceExistingNonRootView

Description

Android build fails with RN 0.74.0.

/Users/tapani/projects/MyApp/app/node_modules/react-native-reanimated/android/src/reactNativeVersionPatch/ReanimatedUIManager/latest/com/swmansion/reanimated/layoutReanimation/ReanimatedUIManager.java:103: error: cannot find symbol
    super.replaceExistingNonRootView(oldTag, newTag);
         ^
  symbol: method replaceExistingNonRootView(int,int)
/Users/tapani/projects/MyApp/app/node_modules/react-native-reanimated/android/src/reactNativeVersionPatch/ReanimatedUIManager/latest/com/swmansion/reanimated/layoutReanimation/ReanimatedUIManager.java:116: error: cannot find symbol
    super.removeSubviewsFromContainerWithID(containerTag);
         ^
  symbol: method removeSubviewsFromContainerWithID(int)

Steps to reproduce

  1. Build for Android

Snack or a link to a repository

https://github.com/software-mansion/react-native-reanimated

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

Real device

Device model

No response

Acknowledgements

Yes

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 20
  • Comments: 17 (2 by maintainers)

Most upvoted comments

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

I found the solution, just downgrade RN to 0.73.0 v, if you see this table, the Reanimated 0.8.1v don´t support RN 0.74.0. imagen

Would you know when will v 3.9.0 be released?

I’m having the same issue.

@tapz Thanks for opening this issue and everyone else for your comments.

For React Native 0.74 support, you’ll need to upgrade to Reanimated 3.10.0 or newer.

same issue ebug UP-TO-DATE

Task :react-native-reanimated:packageNdkLibs NO-SOURCE

Task :react-native-reanimated:compileDebugJavaWithJavac FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. 223 actionable tasks: 5 executed, 218 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

C:\Users\Dell WorkStation\Desktop\mohammed\Algeria\node_modules\react-native-reanimated\android\src\reactNativeVersionPatch\ReanimatedUIManager\latest\com\swmansion\reanimated\layoutReanimation\ReanimatedUIManager.java:103: error: cannot find symbol super.replaceExistingNonRootView(oldTag, newTag); ^ symbol: method replaceExistingNonRootView(int,int) C:\Users\Dell WorkStation\Desktop\mohammed\Algeria\node_modules\react-native-reanimated\android\src\reactNativeVersionPatch\ReanimatedUIManager\latest\com\swmansion\reanimated\layoutReanimation\ReanimatedUIManager.java:116: error: cannot find symbol super.removeSubviewsFromContainerWithID(containerTag); ^ symbol: method removeSubviewsFromContainerWithID(int) Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 2 errors

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ‘:react-native-reanimated:compileDebugJavaWithJavac’.

Compilation failed; see the compiler error output for details.

  • Try:

Run with --info option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 9s info Run CLI with --verbose flag for more details.