https://kotlinlang.org logo
c

Colton Idle

10/01/2020, 8:58 PM
Does compose Alpha 04 work with kotlin 1.4.20? (Before you say "Just try it" I'm trying to migrate an existing project where 1.4.20 solves other issues like kotlinx.synthetics, plus some other kotlin bugs I had, and so it's hard for me to tell who the culprit is which is why I'm just posing the question 😄) EDIT: Aha! I think I have my answer. Even though the newest AS canary mentions
kotlinCompilerVersion '1.4.10'
it also mentions
ext.kotlin_version = "1.4.20-M1"
@jim I'm probably missing something here... but any reason why AS canary 13 (released today) ships with ext.kotlin_version = "1.4.20-M1"
j

jim

10/01/2020, 9:29 PM
Based on your comment/question... it says that inside the new Compose project template I presume?
If so, that's probably an oversight, please file a bug.
c

Colton Idle

10/01/2020, 9:30 PM
Correct
But the kotlinCompilerVersion is set to 1.4.10
Copy code
kotlinCompilerVersion '1.4.10'
so maybe they can be set to different values?
j

jim

10/01/2020, 9:32 PM
nope, I think
kotlinCompilerVersion
takes precedence/overrides, but in theory, they should always match.
c

Colton Idle

10/01/2020, 9:33 PM
Interesting... the new project > compose app does build... so there's that. 😄
j

jim

10/01/2020, 9:34 PM
well, if they're specifying the
kotlinCompilerVersion
then that is overriding the
ext.kotlin_version
so your version is effectively
1.4.10
for the compose module
c

Colton Idle

10/01/2020, 9:35 PM
Interesting. Did not know. This would be solved by a bug that I already filed I suppose: https://issuetracker.google.com/issues/168225750