Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

react native run android

Boa noite,

Estou tendo dificuldade em dar run no android no react native

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

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:compileDebugJavaWithJavac'.

    Could not find tools.jar. Please check that C:\Program Files (x86)\Java\jre1.8.0_251 contains a valid JDK installation.

  • 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.

2 respostas
solução!

Olá Kevin, tudo bem com você?

Pelo que ele está dando de erro a configuração do java não está sendo reconhecida

Pelo que esta dando de erro ele está tentando utilizar a jre 1.8 ao invés da jdk 1.8, para isso o necessário seria fazer download da jdk 1.8 e adicionar no path do JAVA_HOME

Eu encontrei esse tutorial que mostra passo a passo a instalação no Windowse e está bem atualizado, você pode dar uma olhada :)

Abraços e Bons Estudos!

Boa tarde Geovani enviado por Deus

Obrigado cara, consegui aqui já estava ficando doido, valeu thanks.