EAS build - Execution failed for task ':expo-constants:compileReleaseKotlin'

Hello, I’m getting this error when I try to build my managed workflow app for android

Project Dependencies:

"dependencies": {
    "@react-native-async-storage/async-storage": "~1.17.3",
    "@react-navigation/bottom-tabs": "^6.5.4",
    "@react-navigation/native": "^6.1.3",
    "@react-navigation/native-stack": "^6.9.9",
    "@types/react": "~18.0.24",
    "@types/react-native": "~0.70.6",
    "expo": "^47.0.13",
    "expo-application": "~5.0.1",
    "expo-auth-session": "~3.8.0",
    "expo-constants": "~14.0.2",
    "expo-crypto": "~12.0.0",
    "expo-google-sign-in": "^11.0.0",
    "expo-in-app-purchases": "~14.0.0",
    "expo-linking": "~3.3.0",
    "expo-navigation-bar": "~2.0.1",
    "expo-random": "~13.0.0",
    "expo-status-bar": "~1.4.2",
    "expo-web-browser": "~12.0.0",
    "firebase": "^9.17.1",
    "nativewind": "^2.0.11",
    "openai": "^3.1.0",
    "react": "18.1.0",
    "react-native": "0.70.5",
    "react-native-gifted-chat": "^1.1.1",
    "react-native-safe-area-context": "4.4.1",
    "react-native-screens": "~3.18.0",
    "react-native-uuid": "^2.0.1",
    "typescript": "^4.6.3"
  },

Error Message:

w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
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 1 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
317 actionable tasks: 317 executed
[stderr] FAILURE: Build completed with 2 failures.
[stderr] 1: Task failed with an exception.
[stderr] -----------
[stderr] * What went wrong:
[stderr] Execution failed for task ':expo-constants:compileReleaseKotlin'.
[stderr] > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
[stderr]    > Compilation error. See log for more details
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace.
[stderr] > Run with --info or --debug option to get more log output.
[stderr] > Run with --scan to get full insights.
[stderr] ==============================================================================
[stderr] 2: Task failed with an exception.
[stderr] -----------
[stderr] * What went wrong:
[stderr] java.lang.StackOverflowError (no error message)
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace.
[stderr] > Run with --info or --debug option to get more log output.
[stderr] > Run with --scan to get full insights.
[stderr] ==============================================================================
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 3m 58s

I already tried to clear the npm cache, reinstall the expo-constants lib, uninstall it, and try to build… But it had no effect, I even tried to run the doctor but it says it couldn’t find any problems.

Only the release build fails, I can run and debug nicely with the expo go

Please post the actual error messages. Also, please post the dependencies as text instead of as an image.

Updated, thanks