React Native: RN 0.75, react-native-reanimated version error # Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details.
Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Drawer navigation을 설치하기 위해서
여러가지 dependency를 설치해줘야 하는데
그 중에 react native 버전과 관련해서 react-native-reanimated 에 상당한 버그가 존재하는 것을 인터넷을 찾다보면 알 수 있다.
gradle 설정도 중요하겠지만, 항상 버전 문제가 상당히 머리를 아프게 한다.
https://github.com/software-mansion/react-native-reanimated/issues/5855
위 에러를 아래와 같이 0.74.0 버전에서 해결한 방식을 소개하고 있다.
https://github.com/software-mansion/react-native-reanimated/issues/5927#issuecomment-2071460177
0.75버전에서도 된다..
그런데 특이한 점은
npm install react-native-reanimated@^3.9.0-rc.1
을 설치했는데, package.json에는 다음과 같이 자동 입력이 된다.
또한 아래 링크를 보면 reanimated가 버전을 많이 타므로, 버전을 다운그레이드 하는 방법을 이야이하는 댓글도 있다.
https://github.com/software-mansion/react-native-reanimated/issues/5927
버전... 버전을 주의하자 항상....