Hello!
[Resolved] I tried to use Kotlin 2.0.0-RC2 and the compose compiler in kotlin repo to build my project, but I'm getting this error, is the compose compiler version not compatible with the latest RC yet?
Copy code
e: This version (1.3.2) of the Compose Compiler requires Kotlin version 1.7.20 but you appear to be using Kotlin version 2.0.0-RC2 which is not known to be compatible. Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).
l
Lukas Anda
05/01/2024, 7:21 AM
Hey! Your error explicitely mentions compiler version
1.3.2
, isn't that somewhere in the project? Also, I am not sure about this, but I would expect this to work only from the final release of Kotlin 2.0
Hmm interesting. I wonder how it got to the error then 🤔
k
kevin.chiu
05/01/2024, 7:30 AM
Ah sorry my bad, it actually works! I missed to apply the compose plugin to app, only to the library modules
The error is quite misleading though 😅 It's quite surprising where the
1.3.2
came from given there is no compose compiler plugin applied
🤩 1
s
shikasd
05/01/2024, 4:14 PM
1.3.2
is the default version selected by AGP for some reason 🙂
I agree we need a better error message from their side