Published on October 25, 2017 by Android Developers
Want create site? Find Free WordPress Themes and plugins.

Read more about using desugar in your Android Studio project here: goo.gl/vxnVh6

With Android Studio 3.0 and the new Android Plugin for Gradle, Android app developers can now use Java 8 language features such as lambdas, method references, and more, in their projects. Thanks to bytecode transformations (a step we call “desugar”), these also work with code using Java 8 language features in third party libraries. Moreover, the translated DEX code runs on all API levels.

Subscribe to the Android Developers channel here: goo.gl/vLYDU

Did you find apk for android? You can find new Free Android Games and apps.

Leave a Reply

25 Comments on "Android Studio 3.0: Java 8 Language Features Support"

Notify of
avatar

dokuz
Guest
dokuz
9 days 23 hours ago

I did that setting but LocalDate lib does not working in my android studio still. Urgent help please

Alexander Morbid
Guest
Alexander Morbid
14 days 17 hours ago

"We know developers don't like standing still and want access to the latest and greatest tools they use…"That's why we made Java 8 support right after Java 9 was released…

Artem Semeniuk
Guest
Artem Semeniuk
14 days 21 hours ago

Can I use Java 8 for Android versions lower than 6.0?

Hdt Soft
Guest
Hdt Soft
7 days 6 hours ago

Artem Semeniuk Yes

Danilo Carvalho
Guest
Danilo Carvalho
18 days 8 hours ago

Too little too late, Google.We've all boarded the Kotlin hype train already and it's left the station.

Luka Marić
Guest
Luka Marić
17 days 13 hours ago

Danilo Carvalho they wanted that. Kotlin is googles lang xd

HIH
Guest
HIH
18 days 19 hours ago

Bro i am 17 yer old and I want to become programmer I have pc but 7 yer oldSpec Amd dual core 2.6 ghz 64 bit3 gb ram 800mhzCan I start my becoming programmer journey this pc And i dont afford money from paid courses please suggest me any free optionAnd please reply bro your replay important for me I think you are genuine person from YouTube

Jie Wang
Guest
Jie Wang
19 days 19 hours ago

0:22 "toolchain" make he shining

Coding in Flow
Guest
Coding in Flow
23 days 9 hours ago

Very nice!

Gurleen Sethi
Guest
Gurleen Sethi
23 days 15 hours ago

Java 8 Release : 2014Included in Android Studio : 2017👏 blazing fast speed.I will be waiting for Java 9 support in 2020!

Dmitry Saviuk
Guest
Dmitry Saviuk
21 days 8 hours ago

It's not just "included" in Android Studio. It now allows you to use Java 8 features, translating them to Java 7, so it can be used on older Android versions. A replacement for Retrolambda.

Arseniy Kucherenko
Guest
Arseniy Kucherenko
23 days 5 hours ago

Use Kotlin, is even more featured than Java 9

Robert Szlangbaum
Guest
Robert Szlangbaum
24 days 8 hours ago

00:12 Kotlin as an official new language for Android – does that mean we are encouraged to write new code in Kotlin and Java is no longer preferred?

Alex Oh
Guest
Alex Oh
22 days 8 hours ago

IMO, the main reason is so that Google can avoid problems with Oracle in the future.

Robert Szlangbaum
Guest
Robert Szlangbaum
23 days 10 hours ago

During one of the talks, Stephanie Saad Cuthbertson said that they are trying Kotlin internally in many projects which might mean that Kotlin will sneak into Android Framework.

Frieder Bluemle
Guest
Frieder Bluemle
23 days 11 hours ago

Both languages are equally "preferred". Kotlin offers many elegant (syntactic sugar) code constructs, but requires you to put the Kotlin Standard library into your app (more than 5000 methods). The Android framework was written in, and will likely always remain Java code.

Arseniy Kucherenko
Guest
Arseniy Kucherenko
23 days 17 hours ago

Is still up to developer which language to use, but I believe Kotlin will beat significantly Java in few years later for Android, so Java will become more supportive language with old apps and libraries rather than primary developing language for Android

Davide Schembari
Guest
Davide Schembari
23 days 21 hours ago

It just means that Kotlin is as official as Java and you are encouraged to write code in Kotlin because it's far more concise and modern (in terms of syntax) than Java.

Pankaj Rai
Guest
Pankaj Rai
24 days 10 hours ago

Java is still preferred that's y they gave java 8 support but try kotlin it's fun to code in kotlin. It's one such language where developer can show his creativity at his best using it's extension, higher order function

Jody Mimms
Guest
Jody Mimms
24 days 10 hours ago
I Still don't understand why all these people want to promote a phone that is using a Virus ( namely Google Android ) for an Operating System: which constantly tries to undermine your identity by making lots of unnecessary network connections back to Google or Samsung or …..  ;  In some Samsung devices, the camera constantly tries to take selfies of you without you knowing and putting it in a hidden directory called  '  .face  '    ;  guess which program uploads it to Google and Samsung Or the fact that Google has an annual contract to sell whatever information it… Read more »
Fathurrohman Elkusnandi
Guest
Fathurrohman Elkusnandi
23 days 8 hours ago

+Jody Mimms I'm sure it has. You can check open the file in .face folder with any file explorer as an image.

Jody Mimms
Guest
Jody Mimms
23 days 9 hours ago

+ionezgb Thanks for the suggestion Ionezgb ☺I will have a look at what you mentioned

Jody Mimms
Guest
Jody Mimms
23 days 9 hours ago

+Fathurrohman Elkusnandi Thanks for your suggestion.The strange thing is that my version of Android for a Samsung device, doesn't have Facial Recognition features built in it. And a lot of default apps like gallery are removed.

ionezgb
Guest
ionezgb
23 days 14 hours ago

+Jody Mimms Just install custom Google-free ROM. If you want total privacy Purism is making a phone named Librem 5 which focuses on privacy and uses GNU/Linux.

Fathurrohman Elkusnandi
Guest
Fathurrohman Elkusnandi
24 days 4 hours ago

It's a facial recognition tag for and from your gallery apps. Not secretly captured using front camera.If you really concern about that things flash your Android with Lineage OS and don't download any Google services.

wpDiscuz