Bom estou configurando o react native e esta dando um erro no console!
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match thelocation of your Java installation.
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
`at makeError (C:\Users\Erick\Desktop\curso-react-native\exercicios\node_modules\execa\index.js:174:9)at C:\Users\Erick\Desktop\curso-react-native\exercicios\node_modules\execa\index.js:278:16at processTicksAndRejections (internal/process/task_queues.js:97:5)at async runOnAllDevices (C:\Users\Erick\Desktop\curso-react-native\exercicios\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:5)at async Command.handleAction (C:\Users\Erick\Desktop\curso-react-native\exercicios\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:186:9) `