Anybody else experiencing this issue? I upgraded t...
# compose
a
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
I've got a sneaky feeling that if you search for "alpha13" in your project you'll find what's wrong :)
a
q
Have you tried a clean build?
a
yes does not work, invalidate caches restart maybe
nope
does not work either
i can try redownloading all dependencies
a
android studio preview also received an update sometime after the beta release. do check if you are running the latest one, might help
a
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
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
android studio has also the latest kotlin plugin installed (1.4.30)
b
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
the official docs say that i only need this option
Copy code
composeOptions {
        kotlinCompilerExtensionVersion '1.0.0-beta01'
    }
b
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
ok will try
b
🤞
a
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
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
reinstalled AS, no luck
s
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
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!