There was an error while loading. Please reload this page.
This library internally uses lambdas and thus required Java8 as target. This is natively supported since Android Studio 3.0+.
Add these line in your modules build.gradle file to get support for Java8 features:
build.gradle
compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' }
If you are using Kotlin you may also have to add:
kotlinOptions { jvmTarget = '1.8' }
If you get an error like :app:transformClassesWithDesugarForDebug, you may have to enable desugaring in your 'gradle.properties' file
:app:transformClassesWithDesugarForDebug
android.enableD8.desugaring = true
Also see