Error "Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6" in Kotlin
Hello everyone! I'm new to Kotlin and Android development. I'm using IntelliJ IDEA (latest version) and Gradle. Recently I started a new project where I want to use modern Kotlin features like inline functions and lambdas with `inline`. I configured the project with JVM target 1.8 because I want to use new Java 8 features.
Here is my `build.gradle.kts`:
```kotlin
plugins {
kotlin("jvm") version "1.9.0"
}
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
}
tasks.withType {
kotlinOptions {
jvmTarget = "1.8"
}
}
```
But when I run the build, I get the error:
```
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6
```
I don't understand why
No answers yet.
Log in to leave an answer
Blogs