728x90
> Task :lottie-react-native:androidJavadocs FAILED
D:\Android\~~~\node_modules\lottie-react-native\src\android\src\main\java\com\airbnb\android\react\lottie\LottieAnimationViewManager.java:8: error: p
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':lottie-react-native:androidJavadocs'.
> Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): 'D:\Android\~~~\node_modules\lottie-react-native\src\android\build\tmp\androidJavadocs\javadoc.options'
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
Execution optimizations have been disabled for 44 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
BUILD FAILED in 8m 21s
이 경우에는 lottie-react-native의 버전이 현재 프로젝트와 맞지 않아서 발생할 수도 있다.
728x90
먼저 lottie-react-native의 git 공식 홈페이지, 또는 npm 사이트에서 현재 react native의 버전이랑 지금 버전이 맞는지 검토를 해보고 가능하다면 해당 버전에서 최신 버전으로 다시 설치해보고 똑같은 에러가 발생하는지 확인해보자.
이걸 토대로 기존에 가지고 있던 5.0.1에서 5.1.6으로 버전업하고 재설치하니 build 시 똑같은 에러가 나지 않았습니다.
저는 react native 0.70.8버전으로 5.0.1도 지원이 되는 버전이었겠지만 버전마다 패치사항이 다를 수 있으므로 가능한 최신 버전으로 먼저 해보고 안되면 한 버전씩 낮추면서 자신에게 맞는 버전을 찾으면 될 것 같습니다.
728x90