0

I'm trying to use lambda grammar in Android app. but lambda came with java sdk 1.8

is this ok for me to use latest 1.8 java grammar in old Android device? I am sure that old Android device doesn't have jre 1.8

isn't there compatibility issue?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Knowledge Drilling
  • 986
  • 1
  • 8
  • 22

1 Answers1

0

Android doesn't support Java 8 yet because it uses the Dalvik JVM instead of Oracle's. Unfortunately you can't use the brilliant features of Java 8 in Andoird (e.g. default interface implementation, lambdas, streams, method reference, functional programming API) but you can use Groovy and there is a plug-in called Retro lambda that you can install that will let you use lambdas in Java 7.

Sina Madani
  • 1,246
  • 3
  • 15
  • 27