'react-native run-android Error Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

Good afternoon

I have this error a couple of weeks ago and I have tried everything to solve it, until formatting the pc and installing the entire react native environment again.

I have also searched all forums and I have not been lucky enough to find a solution.

If you can help me I would be very grateful

[Git Bash Error][1]

Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Damian\Desktop\Bretit\BretitApp\node_modules\expo-json-utils\android\build.gradle' line: 33

* What went wrong:
A problem occurred configuring project ':expo-json-utils'.
> Could not get unknown property 'release' for SoftwareComponentInternal set of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.

* 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 1m 39s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

error Command failed with exit code 1. ```


  [1]: https://i.stack.imgur.com/MPpLj.png


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source