Enable support for Java 8 API desugaring.

This commit is contained in:
Isira Seneviratne
2020-07-15 08:13:06 +05:30
parent dcaf2b9625
commit 200f8906d8
3 changed files with 7 additions and 2 deletions

View File

@ -4,6 +4,9 @@ android {
compileSdkVersion 30
compileOptions {
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
@ -76,6 +79,8 @@ android {
}
dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.9'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.exifinterface:exifinterface:1.1.0'
implementation 'androidx.cardview:cardview:1.0.0'