Reputation: 372
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.
Upvotes: 0
Views: 188
Reputation: 2497
Gradle 6.2 does not support JDK 14. You have to upgrade your Gradle version to 6.3 or later.
Upvotes: 1