인프런 커뮤니티 질문&답변

고라니님의 프로필 이미지

작성한 질문수

맛집 지도앱 만들기 (React Native + NestJS)

[2-5] Drawer Navigation

react-native-reanimated:compileDebugJavaWithJavac FAILED

해결된 질문

24.06.23 20:21 작성

·

390

·

수정됨

0

  • 질문 작성시 꼭 참고해주세요

    • 최대한 상세히 현재 문제(또는 에러)와 코드(또는 github)를 첨부해주셔야 그만큼 자세히 답변드릴 수 있습니다.

    • 맥/윈도우, 안드로이드/iOS, 버전 등의 개발환경도 함께 적어주시면 도움이 됩니다.

       

    • 에러메세지는 일부분이 아닌 전체 상황을 올려주세요!

 

윈도우 / 안드로이드

  1. yarn add @react-navigation/drawer

  2. yarn add react-native-gesture-handler react-native-reanimated

  3. babel.config

    plugins: ['react-native-reanimated/plugin']

  4. npm start --reset-cache

  5. 에러 발생

  "dependencies": {
    "@react-native-masked-view/masked-view": "^0.3.1",
    "@react-navigation/drawer": "^6.6.15",
    "@react-navigation/native": "^6.1.17",
    "@react-navigation/stack": "^6.3.29",
    "react": "18.2.0",
    "react-native": "0.72.6",
    "react-native-gesture-handler": "^2.17.1",
    "react-native-reanimated": "^3.12.1",
    "react-native-safe-area-context": "^4.10.5",
    "react-native-screens": "^3.32.0"
  },
> Task :react-native-reanimated:compileDebugJavaWithJavac FAILED

> Task :app:processDebugResources

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac'.

현재 reanimated 라이브러리를 설치하면 3.12.1 버전이 설치됩니다.

시도해 본 것

  1. 교안 버전과 같은 reanimated 3.5.4 버전 설치

  2. reanimated 3.13 버전 설치

  • 추가로 rn 버전부터 모든 라이브러리 버전을 강의와 같은 버전으로 했는데도 지난번 질문과 같은 gesture handler 등 왜 오류가 발생하는지 궁금합니다.

답변 3

0

권범준님의 프로필 이미지

2024. 06. 30. 00:59

해결하셨나요!? reanimated 3.3.0버전으로 진행하니 괜찮았습니다.

0

고라니님의 프로필 이미지
고라니
질문자

2024. 06. 25. 09:44

RN 안드로이드 환경에서 버전, 환경 등을 확인해야 하는 것엔 어떤 것이 있나요?

  1. React Native 버전

  2. node 버전

  3. java(JDK) 버전 8/11/17

     

  4. gradle 버전 (android studio 버전)

  5. SDK 버전 에뮬 디바이스

     


  1. adb

  2. NPM

  3. NDK

0

Kyo님의 프로필 이미지
Kyo
지식공유자

2024. 06. 24. 22:57

동일한 에러이슈들인데 참고해보시겠어요? 같은 버전으로 했는데 오류가 발생하는것은 코드,설정,지원버전,환경 등 여러 요인이 있을 수 있습니다.

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

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

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