The JRE is the Java Runtime Environment while the JDK is the Java Development Kit. It is the JDK that you need for Android application development along with the existing Android SDK. The Android SDK can use either JDK 6 or 7 , however, it can ONLY use the JDK 6 API.
Read moreCan I use Java 11 for Android?
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.
Read more