-
Notifications
You must be signed in to change notification settings - Fork 165
Troubleshooting
Matthias Urhahn edited this page Sep 20, 2018
·
1 revision
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:
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
android.enableD8.desugaring = true
Also see