i am new to react native and I am trying to start a new project but I am getting the following error
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
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
I have set envinonmet variables but I don't know why issue occurring can some one help