Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

611
Visualizações
react-native run-android help gradle errors (FAILURE: Build failed with an exception.)

hello guys i have 2 react-native-cli projects in my pc

the first project was created using react-native init myproject and it is working fine when i run it on my android phone through usb cable

i dont get any errors on react-native run-android i have installed all the necessary things like jdk,sdk, etc so it is working fine.

now the 2nd project which i have cloned from github repo and after that i do npm install and after getting node_modules etc i try to run it react-native run-android the same way but i get errors running this project

here is errors list

**FAILURE: Build failed with an exception.

  • What went wrong: Could not open settings generic class cache for settings file 'D:\Soft Projects\pt project\pt_mobile_app\android\settings.gradle' (C:\Users\Ayan Computer.gradle\caches\6.9\scripts\3hjanr5wss637aq9ij7rjm2xr).

BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 62

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

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**

BUILD FAILED in 1s

at makeError (D:\Soft Projects\pt project\pt_mobile_app\node_modules\execa\index.js:174:9)
at D:\Soft Projects\pt project\pt_mobile_app\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (D:\Soft Projects\pt project\pt_mobile_app\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (D:\Soft Projects\pt project\pt_mobile_app\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:192:9)

info Run CLI with --verbose flag for more details.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda