maxkeppeler/sheets-compose-dialogs

Android 6.0 CalendarView

AndroidHJS opened this issue · 1 comments

java.lang.NoClassDefFoundError: Failed resolution of: Ljava/time/LocalDate;
at com.maxkeppeler.sheets.calendar.utils.Constants.(Constants.kt:28)
at com.maxkeppeler.sheets.calendar.models.CalendarConfig.(CalendarConfig.kt:39)

The calendar and time dependent libraries require Java 1.8 / the java.time dependencies.

android {
    ...
    compileOptions {
        targetCompatibility JavaVersion.VERSION_1_8
        sourceCompatibility JavaVersion.VERSION_1_8
    }
    
    dependencies {
        ...
        implementation 'com.android.tools:desugar_jdk_libs:1.1.5'
        ...
  }
}