Hello! [Resolved] I tried to use Kotlin 2.0.0-RC2 ...
# compose
k
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
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
k
isn't that somewhere in the project
No, it's not defined anywhere in the project.
work only from the final release of Kotlin 2.0
I saw the comment here, thought it supposed to work 🤔
l
Hmm interesting. I wonder how it got to the error then 🤔
k
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
1.3.2
is the default version selected by AGP for some reason 🙂 I agree we need a better error message from their side
👍 1
555 Views