[ Web Proxy ]
URL:
Viewing: http://developer.android.com/studio/write/java8-support-table [Back]  [Original]

Java 8+ APIs available through desugaring  |  Android Studio  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]

Java 8+ APIs available through desugaring Stay organized with collections Save and categorize content based on your preferences.

Android Studio now includes support for using a number of Java 8+ APIs without requiring a minimum API level for your app. Through a process called API desugaring, the DEX compiler (D8) allows you to include more standard language APIs in apps that support older versions of Android.

Below is a searchable table showing which Java 8+ libraries are available when using the latest version of the Android Gradle Plugin with the coreLibraryDesugaring dependency set to com.android.tools:desugar_jdk_libs:1.1.8 in build.gradle (see API desugaring for more information).

Package +
Class,
Enum,
or Interface
Constructors,
Properties,
and Methods
Notes
java.lang


 Iterable


  • public void forEach(Consumer action)
  • public java.util.Spliterator spliterator()

Additional methods on existing class.
 

java.time
See customizations
Web Proxy Viewer  |  New URL  |  Original Page