简体   繁体   中英

React Native Android - Error while running react-native run-android the first time

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.

Gradle 6.2 不支持 JDK 14。您必须将 Gradle 版本升级到 6.3 或更高版本。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM