Set compile options
The ForgeRock Android SDK uses Java 8 (v1.8). Configure the compile options in your project to use this version.
In the android
section of your build.gradle
file, configure the following:
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}