Please help. I'm stuck in a endless loop. Gradle S...
# compose
b
Please help. I'm stuck in a endless loop. Gradle Syncs not issue but can't build a test app. e: This version (1.0.0-beta07) of the Compose Compiler requires Kotlin version 1.4.32 but you appear to be using Kotlin version 1.5.10 which is not known to be compatible.     Yet I have.
Copy code
buildscript {
    ext {
        compose_version = "1.0.0-beta08"
        kotlin_version = "1.5.10"
    }
Not sure where it's getting beta07 from I can't find it anywhere in the project
p
can you post your
composeOptions
in your app module build.gradle?
you now need to explicitly specify
kotlinCompilerVersion
inside
composeOptions
b
It's commented out. because of ComposeOptions.kotlinCompilerVersion is deprecated. Compose now uses the kotlin compiler defined in your buildscript.
otherwise
Copy code
composeOptions {
    kotlinCompilerExtensionVersion "${compose_version}"
    kotlinCompilerVersion "${kotlin_version}"
}
p
you are right, can you share this test app code somehow?
b
Sure commenting it back in allows me to compile and build, but it throws the warning. I'll find away to share the files
c
Also, make sure all of your fragment and activity dependencies are up to date (potentially even the latest alpha, etc). I think I've seen that cause issues. Same for if you use accompanist.
a
Compose Compiler is the compiler plugin and no compose libraries depend on the compiler plugin so it's because compose compiler plugin is not set up correctly. Make sure you specify
kotlinCompilerExtensionVersion
correctly.
kotlinCompilerVersion
is deprecated, but
kotlinCompilerExtensionVersion
is not.
☝️ 1