Which Java SE version works with android studio 3.1?
I recently installed Java SE 10 on Windows 10, but android studio always displays Gradle sync failed message with the following error:
Could not determine Java version using executable C:\program Files\java\jdk-10\bin\java.exe
The maximum possible version for Android Studio 3.1 is Java 8. Also, some of the features of Java 8 are unavailable for lower API versions. For example, my minimum API version is 16 and if I try to use
stream
, I get errors because these features are available only for API 24 and higher. You can use lambda expressions, method references however etc. To know more, visit this Link