0

i am new in react-native,I am trying to run "React Native" project, whenever i use "react-native run-android" command in my terminal,its showing me following error,how can i solve this ? Thanks in advance.

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

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file 'D:\monocle_rn_code_distribution_original\android\settings.gradle' (C:\Users\DELL\.gradle\caches\6.7\scripts\660pzar9jda3xvp08gf53obw8).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 61
  • You don't have Android home setup. Check [this](https://stackoverflow.com/questions/28296237/set-android-home-environment-variable-in-mac) to setup. – Rohit Aggarwal Mar 21 '22 at 17:26

0 Answers0