Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

[stderr]

FAILURE: Build completed with 2 failures.

1337[stderr]

1: Task failed with an exception.

1338[stderr]

-----------

1339[stderr]

* What went wrong:

1340[stderr]

Execution failed for task ':app:mergeReleaseResources'.

1341[stderr]

> A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable

1342[stderr]

   > Android resource compilation failed

1343[stderr]

     ERROR:/home/expo/workingdir/build/android/app/build/generated/res/react/release/drawable-mdpi/assets_icons_arrow.png: AAPT: error: file failed to compile.

1344[stderr]

         

1345[stderr]

* Try:

1346[stderr]

> Run with --stacktrace option to get the stack trace.

1347[stderr]

> Run with --info or --debug option to get more log output.

1348[stderr]

> Run with --scan to get full insights.

1349[stderr]

==============================================================================

1350[stderr]

2: Task failed with an exception.

1351[stderr]

-----------

1352[stderr]

* What went wrong:

1353[stderr]

java.lang.StackOverflowError (no error message)

1354[stderr]

* Try:

1355[stderr]

> Run with --stacktrace option to get the stack trace.

1356[stderr]

> Run with --info or --debug option to get more log output.

1357[stderr]

> Run with --scan to get full insights.

1358[stderr]

==============================================================================

1359[stderr]

* Get more help at https://help.gradle.org

1360[stderr]

BUILD FAILED in 5m 35s

1361

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

1362

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

1363

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

1364

Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.

1365

Please consult deprecation warnings for more details.

1366

483 actionable tasks: 483 executed

1367

Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

Please help me to solve this errors asap.