Erro ao executar o app no emulador android

24/05/2019

0

Recentemente começou a aparece o seguinte erro ao tentar executar um app com o comando react-native run-android no emulador android. Segue erro abaixo:

Task :app:installDebug FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:installDebug'. > com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_FAILED_DEXOPT * 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 20s 26 actionable tasks: 1 executed, 25 up-to-date error Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/getting-started.html error Command failed: gradlew.bat app:installDebug. Run CLI with --verbose flag for more details.

Alguém já passou por esse problema e conseguiu resolver?
João Marques.

João Marques.

Responder

Posts

04/09/2019

Stella Oliveira

Então, eu apelei muito para esse erro, a solução que fiz foi:

Apagar o arquivo gradle-xxxx-all.zip e fazer o download do gradle novamente.
Responder

02/09/2021

Leandro Barros

o meu quando tento abrir está dando este erro:
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Exception in thread "main" javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Responder

Assista grátis a nossa aula inaugural

Assitir aula

Saiba por que programar é uma questão de
sobrevivência e como aprender sem riscos

Assistir agora

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar