Java 8 language feature support (Android Gradle Plugin 3. 0 . 0+) // through dependencies).
Read moreWhich version of Java is Gradle using?
Gradle can only run on Java version 8 or higher . Gradle still supports compiling, testing, generating Javadoc and executing applications for Java 6 and Java 7.
Read more