npm run android:dev

> [email protected] android:dev
> ENVFILE=.env.development && react-native run-android

info JS server already running.
info Installing the app...
Starting a Gradle Daemon, 1 busy and 2 stopped Daemons could not be reused, use --status for details

...
> Task :react-native-svg:bundleLibRuntimeToDirDebug FAILED
....

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>
273 actionable tasks: 11 executed, 262 up-to-date
Note: /Users/palpalz1/main-mobile/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/VirtualView.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':react-native-svg:bundleLibRuntimeToDirDebug'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.BundleLibraryClassesWorkAction
   > File /Users/palpalz1/main-mobile/node_modules/react-native-svg/android/build/intermediates/runtime_library_classes_dir/debug/com/horcrux/svg/FontData$AbsoluteFontWeight.class already exists, it cannot be overwritten by SerializableChange(file=/Users/palpalz1/main-mobile/node_modules/react-native-svg/android/build/intermediates/javac/debug/classes/com/horcrux/svg/FontData$AbsoluteFontWeight.class, fileStatus=NEW, normalizedPath=com/horcrux/svg/FontData$AbsoluteFontWeight.class).

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* 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 2m 59s

error Failed to install the app. Make sure you have the Android development environment set up: <https://reactnative.dev/docs/environment-setup>.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Note: /Users/palpalz1/main-mobile/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/VirtualView.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':react-native-svg:bundleLibRuntimeToDirDebug'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.BundleLibraryClassesWorkAction
   > File /Users/palpalz1/main-mobile/node_modules/react-native-svg/android/build/intermediates/runtime_library_classes_dir/debug/com/horcrux/svg/FontData$AbsoluteFontWeight.class already exists, it cannot be overwritten by SerializableChange(file=/Users/palpalz1/main-mobile/node_modules/react-native-svg/android/build/intermediates/javac/debug/classes/com/horcrux/svg/FontData$AbsoluteFontWeight.class, fileStatus=NEW, normalizedPath=com/horcrux/svg/FontData$AbsoluteFontWeight.class).

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* 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 2m 59s

    at makeError (/Users/palpalz1/main-mobile/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:174:9)
    at /Users/palpalz1/main-mobile/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:278:16
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runOnAllDevices (/Users/palpalz1/main-mobile/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:82:7)
    at async Command.handleAction (/Users/palpalz1/main-mobile/node_modules/@react-native-community/cli/build/index.js:108:9)
info Run CLI with --verbose flag for more details.
  1. 중복 클래스 파일: File ... already exists, it cannot be overwritten라는 오류는 빌드 프로세스가 이미 존재하는 파일을 생성하려고 시도하고 있음을 나타냅니다. 이는 빌드 캐시 문제나 증분 컴파일 문제 때문일 수 있습니다.
  2. StackOverflowError: java.lang.StackOverflowError는 재귀적 메소드 호출 또는 JVM에서 처리할 수 없는 깊게 중첩된 데이터 구조와 관련된 문제가 있음을 일반적으로 나타냅니다.

이러한 문제를 해결하기 위해 다음 단계를 시도해볼 수 있습니다: