0

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 : Screenshot of the terminal

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.

2
  • Can you post your Gradle and the JDK versions? Commented Sep 10, 2020 at 18:07
  • Grade version 6.2 and jdk version 14.0.2 Commented Sep 11, 2020 at 8:11

1 Answer 1

1

Gradle 6.2 does not support JDK 14. You have to upgrade your Gradle version to 6.3 or later.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks a lot for help. I upgraded the Gradle version and react-native builded the apk.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.