2
respostas

FAILURE: Build failed with an exception.

Prezados, solicito ajuda para identificar este problema na execução do comando react-native run-android segue o erro apresentado:

FAILURE: Build failed with an exception.

  • What went wrong: Could not determine the dependencies of task ':app:installDebug'.

    SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at 'C:\Users\f0500025\Documents\Treinamento\01React\Instalura\android\local.properties'.

  • 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 5s

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

2 respostas

Prezados, superei o erro acima configurando as variaveis de ambiente. Porém, apareceu novo erro na tela do avd. vide link abaixo.

https://drive.google.com/file/d/1BSFVmPwQmv7UBelzHnUl0FZD0SYaY9CG/view?usp=sharing

Oi Alisson, esse link precisa de permissão para visualizá-lo. Vou aguardar.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software