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 had the same problem because I had a folder for the integration tests different than the unit test folder. So the build.gradle needs more configuration:
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
//added this
compileIntegrationTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}