I have a Kotlin project in Android Studio. I am calling a static method in Java interface from the Kotlin code. The build fails with the error,
Calls to static m
I am able to resolve this by adding below block as my build.gradle is not in dsl. To set the target JVM version for the Kotlin compiler, use the following block:
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { kotlinOptions { jvmTarget = "1.8" } }