0

`> Task :app:compileDebugJavaWithJavac FAILED 58 actionable tasks: 3 executed, 55 up-to-date C:\Dev\ReactNative\project\myapp\android\app\build\generated\rncli\src\main\java\com\facebook\react\PackageList.java:15: error: cannot find symbol import com.swmansion.gesturehandler.RNGestureHandlerPackage; ^ symbol: class RNGestureHandlerPackage location: package com.swmansion.gesturehandler C:\Dev\ReactNative\project\myapp\android\app\build\generated\rncli\src\main\java\com\facebook\react\PackageList.java:65: error: cannot find symbol new RNGestureHandlerPackage(), ^ symbol: class RNGestureHandlerPackage location: class PackageList 2 errors

FAILURE: Build completed with 2 failures.

1: Task 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. ==============================================================================

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

BUILD FAILED in 18s

Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 C:\Dev\ReactNative\project\myapp\android\app\build\generated\rncli\src\main\java\com\facebook\react\PackageList.java:15: error: cannot find symbol import com.swmansion.gesturehandler.RNGestureHandlerPackage; ^ symbol: class RNGestureHandlerPackage location: package com.swmansion.gesturehandler C:\Dev\ReactNative\project\myapp\android\app\build\generated\rncli\src\main\java\com\facebook\react\PackageList.java:65: error: cannot find symbol new RNGestureHandlerPackage(), ^ symbol: class RNGestureHandlerPackage location: class PackageList 2 errors

FAILURE: Build completed with 2 failures.

1: Task 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. ==============================================================================

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

BUILD FAILED in 18s

at makeError (C:\Dev\ReactNative\project\myapp\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
at C:\Dev\ReactNative\project\myapp\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (C:\Dev\ReactNative\project\myapp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:82:7)
at async Command.handleAction (C:\Dev\ReactNative\project\myapp\node_modules\@react-native-community\cli\build\index.js:108:9)

info Run CLI with --verbose flag for more details. `

run android command using Metro v0.73.7 , Build Failed

Faycal
  • 11
  • 4

0 Answers0