Which Java SE versions work with android studio 3.

2020-04-11 11:38发布

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

1条回答
Juvenile、少年°
2楼-- · 2020-04-11 12:14

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

查看更多
登录 后发表回答