https://kotlinlang.org logo
#compose
Title
# compose
a

André Thiele

02/28/2021, 1:24 PM
Anybody else experiencing this issue? I upgraded to beta01 and kotlin 1.4.30
androidx.compose.compiler.plugins.kotlin.IncompatibleComposeRuntimeVersionException: You are using an outdated version of Compose Runtime that is not compatible with the version of the Compose Compiler plugin you have installed. The compose compiler plugin you are using (version 1.0.0-alpha13) expects a minimum runtime version of 1.0.0-alpha13.
This is what my dependencies look like: This is what my dependencies look like:
q

Quentin Dommerc

02/28/2021, 1:34 PM
I've got a sneaky feeling that if you search for "alpha13" in your project you'll find what's wrong :)
a

André Thiele

02/28/2021, 1:35 PM
q

Quentin Dommerc

02/28/2021, 1:36 PM
Have you tried a clean build?
a

André Thiele

02/28/2021, 1:39 PM
yes does not work, invalidate caches restart maybe
nope
does not work either
i can try redownloading all dependencies
a

A. Sachdeva

02/28/2021, 1:50 PM
android studio preview also received an update sometime after the beta release. do check if you are running the latest one, might help
a

André Thiele

02/28/2021, 1:50 PM
im running canary 8
Cleared my system level gradle cache and redownloaded all deps
this is still the error message: The compose compiler plugin you are using (version 1.0.0-alpha13) expects a minimum runtime version of 1.0.0-alpha13.
what is this??
b

Bradleycorn

02/28/2021, 2:02 PM
I had that when I first updated to beta 1
I'm trying to remember exactly what the problem was
I think it may have been that I had tried to update Kotlin to 1.4.31, and it didn't like that, and I had to go back to 1.4.30
a

André Thiele

02/28/2021, 2:05 PM
android studio has also the latest kotlin plugin installed (1.4.30)
b

Bradleycorn

02/28/2021, 2:05 PM
yeah I think that was it. Cause my build script looks like this:
Copy code
composeOptions {
        kotlinCompilerVersion = Libs.Kotlin.version
        kotlinCompilerExtensionVersion = Libs.AndroidX.Compose.version
    }
And when
Libs.Kotlin.version
was `1.4.31, it didn't like that and gave me that error.
a

André Thiele

02/28/2021, 2:09 PM
the official docs say that i only need this option
Copy code
composeOptions {
        kotlinCompilerExtensionVersion '1.0.0-beta01'
    }
b

Bradleycorn

02/28/2021, 2:11 PM
hmmm .. I'm not sure .. I just created a new Compose project with Android Studio, and it produced:
Copy code
composeOptions {
        kotlinCompilerExtensionVersion compose_version
        kotlinCompilerVersion '1.4.30'
    }
a

André Thiele

02/28/2021, 2:12 PM
ok will try
b

Bradleycorn

02/28/2021, 2:14 PM
🤞
a

André Thiele

02/28/2021, 2:16 PM
nope, still same issue. i think its a problem with my kotlin plugin. Will reinstall Android Studio maybe. Can compose beta be used with Android Studio Beta already?
b

Bradleycorn

02/28/2021, 2:17 PM
I don't think so. I think only Canary
And probably only the latest Canary
But I'm not positive. Someone else may know better than me
a

André Thiele

02/28/2021, 5:01 PM
reinstalled AS, no luck
s

Smorg

02/28/2021, 6:51 PM
had this same issue when I declared my kotlin version as 1.4.31. Are you not getting a suggestion to do this: https://stackoverflow.com/questions/65545018/where-can-i-put-the-suppresskotlinversioncompatibilitycheck-flag
a

André Thiele

02/28/2021, 9:44 PM
Will try this tomorrow, thanks! Still bad cuz no other repo is doing it this way it should work without it
If alpha-13 refers to a snapshot, than some library might be using a snapshot and interfere with my normal compose version. is there a way to see all compose versions used and where they come from?
I fixed it!! I added an explicit dependency on ActivityCompose alpha-03 on both my app module and my compose module and now it works!
4 Views