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
  • 34,719
  • 24
  • 185
  • 251
Knowledge Drilling
  • 904
  • 1
  • 8
  • 20

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,159
  • 2
  • 13
  • 27