Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin 1.9.22 support #4059

Closed
hfhbd opened this issue Dec 21, 2023 · 4 comments
Closed

Kotlin 1.9.22 support #4059

hfhbd opened this issue Dec 21, 2023 · 4 comments
Assignees
Labels
compiler Compiler plugin related enhancement New feature or request

Comments

@hfhbd
Copy link
Contributor

hfhbd commented Dec 21, 2023

As a workaround you can easily suppress the version checker:

compose {
    kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.9.22")
}
@hfhbd hfhbd added enhancement New feature or request submitted labels Dec 21, 2023
@dima-avdeev-jb
Copy link
Contributor

Thanks! Sure we will support it.

@eymar
Copy link
Collaborator

eymar commented Dec 27, 2023

Compose Multiplatform Compiler plugin 1.5.7 has been published.

It can be used by setting:

compose {
    kotlinCompilerPlugin.set("1.5.7")
}

Out of a box, the support of 1.9.22 will be enabled in the next dev build. Fixed by: #4075

@jamesonwilliams
Copy link

jamesonwilliams commented Jan 2, 2024

Hey there, sorry if I've misunderstood: is 1.5.7 the correct version for Kotlin 1.9.22 right now?

I get this message when I build:

This version (1.5.7) of the Compose Compiler requires Kotlin version 1.9.21 but you appear to be using Kotlin version 1.9.22 which is not known to be compatible.

@eymar
Copy link
Collaborator

eymar commented Jan 2, 2024

@jamesonwilliams I guess you changed it like this:

android { 
 .....
  composeOptions {
          kotlinCompilerExtensionVersion "1.5.7" // same as "androidx.compose.compiler:compiler:1.5.7"
      }
....

Right?

the thing is that the above DSL is only applicable to android, which will set to androidx.compose.compiler:compiler:1.5.7 which doesn't support kotlin 1.9.22.

org.jetbrains.compose.compiler:compiler:1.5.7 support kotlin 1.9.22

While this DSL is for compose multiplatform projects:

compose {
    kotlinCompilerPlugin.set("1.5.7") // same as "org.jetbrains.compose.compiler:compiler:1.5.7"
}

the versioning is different between Jetpack Compose and Compose Multiplatform compiler plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Compiler plugin related enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants