After updating to android build tools 4.2.0, I get...
# android
m
After updating to android build tools 4.2.0, I get a build failure when I remove this (I’ll update this with more detail when I get the chance)
Copy code
kotlinOptions {
    jvmTarget = "1.8"
}
If I only remove this, then all builds fine:
Copy code
compileOptions {
    sourceCompatibility = JavaVersion.VERSION_1_8
    targetCompatibility = JavaVersion.VERSION_1_8
}
t
Yes, because 1.8 is default now.
m
Not working for me. I don’t have the exact error right now. But it mentions an issue with unable to inline 1.8 with 1.6 (I Ithink)
t
Humm, must be a bug so. Java language version 8 by default
n
What Kotlin version are you using? I believe you need to be using Kotlin 1.5.0 to remove the
jvmTarget = "1.8"
https://blog.jetbrains.com/kotlin/2021/05/kotlin-1-5-0-released/
Screen Shot 2021-05-05 at 10.31.37 AM.png
m
Thanks @Nicholas Doglio Yes, I haven’t updated Kotlin yet, because of a compiler bug that prevents some of my code compiling. So I’m holding off first until that is fixed.
👍 1