Does anyone have any idea why `kotlinCompilerClass...
# announcements
s
Does anyone have any idea why
kotlinCompilerClasspath
would downgrade my Kotlin version from 1.4.20 → 1.4.10, or could perhaps point me in the right direction on where to look? I see this when I run `./gradlew dependencies`:
Copy code
kotlinCompilerClasspath
+--- org.jetbrains.kotlin:kotlin-compiler-embeddable:1.4.20 -> 1.4.10
|    +--- org.jetbrains.kotlin:kotlin-stdlib:1.4.10
|    |    +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.10
|    |    \--- org.jetbrains:annotations:13.0
|    +--- org.jetbrains.kotlin:kotlin-script-runtime:1.4.10
|    +--- org.jetbrains.kotlin:kotlin-reflect:1.4.10
|    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.10 (*)
|    +--- org.jetbrains.kotlin:kotlin-daemon-embeddable:1.4.10
|    \--- org.jetbrains.intellij.deps:trove4j:1.0.20181211
\--- org.jetbrains.kotlin:kotlin-compiler-embeddable:1.4.10 (*)
There are no (direct) references to 1.4.10 in my dependency declarations, either. And that's the only place where I see the downgrade to 1.4.10. My Kotlin dependencies:
Copy code
object Kotlin {
    const val version = "1.4.20"

    const val gradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$version"
    const val stdLib = "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$version"
}
k
what version of kotlin plugin do you have? I think there is and issue that latest idea is using .10 plugin version
but not sure if it is related
s
IDE plugin, you mean? This script was run outside of the IDE, so I'm not sure if it applies, but I'm using Android Studio Arctic Fox (2020.3.1 Canary 1) with the Kotlin 1.4.20-release-Studio4.2-1 plugin.
Hmm. I can see if there's a new plugin release for Studio in EAP that fixes it.
Doesn't seem that way. 🤔
Wait …
I'm not using
kotlinCompilerVersion
in my build scripts, it seems! O__O
Yeah, this seems to do the trick. Thanks for your help! simple smile
k
quack
rubber duck 2
s
Just realized this turned out to be very #CJLTWPH7S specific. Didn't see that when I first posted, so apologies for using the wrong channel.
n
Do you have a build scan you can share? The dependencies tab would give a deep insight in to why this is being required
s
Providing
composeOptions
with a Compose and Kotlin version is currently necessary for Compose projects. Not sure I wanna dive down the hole of figuring out why that is, and just live with the fact that it is for now, seeing as it solved my problem. simple smile