Last active
June 16, 2020 18:47
-
-
Save yenerm/a8628729d88cc633a11cceeffd583367 to your computer and use it in GitHub Desktop.
Java 8 desugaring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Copyright 2019 Google LLC. | |
SPDX-License-Identifier: Apache-2.0 --> | |
android { | |
defaultConfig { | |
//Only required when setting minSdkVersion to 20 or lower | |
multiDexEnabled true | |
} | |
compileOptions { | |
// Flag to enable support for the new language APIs | |
coreLibraryDesugaringEnabled true | |
// Sets Java compatibility to Java 8 | |
sourceCompatibility JavaVersion.VERSION_1_8 | |
targetCompatibility JavaVersion.VERSION_1_8 | |
} | |
} | |
dependencies { | |
// Dependency with the implementation code for the APIs | |
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.5' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment