본문 바로가기
Dev Error

[React Native Error] Execution failed for task ':react-native-image-crop-picker:compileDebugJavaWithJavac'

by 개발이 체질인 나그네 2023. 4. 29.
반응형
* What went wrong:
Execution failed for task ':react-native-image-crop-picker:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

새로운 노트북에서 안드로이드를 빌드 하는데, 계속 위와 같은 애러가 발생했습니다.

 

 

 

GitHub - ivpusic/react-native-image-crop-picker: iOS/Android image picker with support for camera, video, configurable compressi

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping - GitHub - ivpusic/react-native-image-crop-picker: iOS/Android image picker with supp...

github.com

  1. If you are using react-native >= 0.60 use react-native-image-crop-picker version >= 0.25.0. Otherwise use version < 0.25.0.
  2. If you want to use react-native-image-crop-picker version >= 0.39.0 you have to set your android compileSdkVersion to 33 or greather. Otherwise use react-native-image-crop-picker version < 0.39.0

공식문서를 보니 android compileSdkVersion이 33 또는 그 이상일 경우에만 0.39.0 버젼을 이용하라고 합니다.

하지만 저는 컴파일 버젼이 33임에도 애러가 나길래 버젼을 낮췄습니다.

 

npm i react-native-image-crop-picker@^0.38.1

 

그랬더니 문제가 해결됬네요.

 

 

Execution failed for task ':react-native-image-crop-picker:compileDebugJavaWithJavac' · Issue #1098 · ivpusic/react-native-ima

Version react-native-image-crop-picker v^0.25.0 react-native v^0.59.8 Platform Android Expected behavior Expecting it to build successfully and I start the implementation Actual behavior It is not ...

github.com

 

 

반응형

댓글