FAILURE: Build failed with an exception.
Where: Build file 'C:\Users\ertu\Desktop\r\a\android\app\build.gradle' line: 1
What went wrong: A problem occurred evaluating project ':app'.
Failed to apply plugin 'com.android.internal.application'. Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some of the following options: - changing the IDE settings. - changing the JAVA_HOME environment variable. - changing
org.gradle.java.home
ingradle.properties
.
The latest version of react native requires JDK 11.
First, check which version of JDK is installed in your system. In your system terminal whatever OS you are using
java --version
if the java version is less than 11 then uninstall the JDK from your system and then install JDK 11. Click here to get the JDK 11
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.