-
RNGestureHandlerPackage , Execution failed for task ':app:compileDebugJavaWithJavac'. 안드로이드 빌드 에러개발중 오류 정리 2024. 4. 19. 15:11
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.
See https://docs.gradle.org/8.0.1/userguide/command_line_interface.html#sec:command_line_warnings
205 actionable tasks: 2 executed, 203 up-to-date
info 💡 Tip: Make sure that you have set up your development environment correctly, by running 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
/Users/프로젝트이름/Documents/workspace/프로젝트이름/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:27: error: cannot find symbol
import com.swmansion.gesturehandler.RNGestureHandlerPackage;
^
symbol: class RNGestureHandlerPackage
location: package com.swmansion.gesturehandler
/Users/프로젝트이름/Documents/workspace/프로젝트이름/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:95: error: cannot find symbol
new RNGestureHandlerPackage(),
^
symbol: class RNGestureHandlerPackage
location: class PackageList
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
> 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
BUILD FAILED in 26s
info Run CLI with --verbose flag for more details.
안드로이드 캐시 지웠다가 다시 깔았는데 이런 오류가 나오더라구요 ($ cd android && ./gradlew clean)
노드 모듈을 재설치 하시면 해결됩니당
$ rm -rf ./node_modules
$ yarn install
'개발중 오류 정리' 카테고리의 다른 글
Spring 개발 과정중 오류( view.jsp에서의 간단한 고침) (2) 2024.01.10 accept-charset="UTF-8" (2) 2023.12.30