Does IntelliJ Android Studio last update (From 30/Jan/2016) supports Java 8?
I used a lambda expression
mButton.setOnClickListener((View v) -> {
// do something here
});
then Android Studio tells me I have an error and when I resolve the problem (Alt+spacebar) I choose the Change to Java 8 (or something like that) and it works the lambda but the libraries from Android seems to be unsupported it marks all in red.
Any options for supporting Java 8 in Android Studio?
Note: I'm using the last API Level
解决方案
No, Java 8 isn't supported. What you can do instead to write Lambdas and method references is to include retrolambda dependency to your project. Same with streams, here is a backport library. Alternatively, consider using kotlin.