error when executing application in React Native

Asked

Viewed 323 times

0

I’ve been having these mistakes for a couple of days and I did a lot of research before opening this question here, I couldn’t solve it at all, I’m a beginner in the area someone can help me? inserir a descrição da imagem aqui

the dependencies I need are all installed

C:\Users\familia\Desktop\projetos\barber\app>npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1130 file(s) to forward-jetify. Using 12 workers...
info Starting JS server...
'adb' n�o � reconhecido como um comando interno
ou externo, um programa oper�vel ou um arquivo em lotes.
info Launching emulator...
error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...

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 the
location of your Java installation.

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
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.