I want to update `compose` to `beta02`, but when I...
# compose
s
I want to update
compose
to
beta02
, but when I increment the version I get this error? I am not seeing any
Kotlin
version update, I checked the latest updates. I am using latest AS Canary ?
r
1.4.31
is out, you should be able to use it. https://github.com/JetBrains/kotlin/releases/tag/v1.4.31
💯 1
s
okay, so I did not find this update in AS Canary, so I manually updated the Kotlin version and now its telling me this:
i
does it build successfully?
t
i added this to my project and it worked
Copy code
composeOptions {
        kotlinCompilerVersion "1.4.31"
        kotlinCompilerExtensionVersion "1.0.0-beta02"
    }
You have to have these in your project gradle too
Copy code
dependencies {
    classpath 'com.android.tools.build:gradle:7.0.0-alpha09'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.31"

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
i
i think kotlinCompilerVersion is depceated
👍 1
t
yeah but if I remove it i got error
I tried to add compiler dependency to the classpath but it didn’t work either
I figured it out. In AS go to Tools> Kotlin > Configure Kotlin upadate > Select version 1.4
K 1
with that you can remove the deprecated compose options
💯 1
s
thanks for the answers, project builds now, but still getting the warning in the above Screenshot, shall I ignore it? I did not find any new Kotlin plugin update in AS?
t
I just set it like this and remove all the composeOptions and the warnings are gone
s
I checked it as well, it says the same to me too that I have the latest version, you mean I should remove composeOptions{ } in build.gradle ?
t
Yes