I am new to react-native. After creating the project, I was trying to run on android with this command.
react-native run-android
I ran into some " Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081". The screenshot of the terminal(command prompt) is here :

I have all java, Android Studio installed. I have also added the ANDROID_HOME and JAVA_HOME environment variable and platform-tools in Path. I have also build the project in Android Studio. Please help me solving this error.