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 |
|
Additional methods on existing class. |
java.timeSee customizations
|