Hi everyone, I am trying to upgrade our KMP proje...
# multiplatform
e
Hi everyone, I am trying to upgrade our KMP project from Kotlin 1.9.25 to Kotlin 2(2.0.21 to be specific). I have updated my Android Studio to Narwhal 3 Feature Drop | 2025.1.3 and set up the gradle to use kotlin 2.0 as follows:
Copy code
kotlin_language_version = 2.0
sourceSets.configureEach {
    languageSettings {
        apiVersion = kotlin_language_version
        languageVersion = kotlin_language_version
    }
}
The I have updated almost all my dependencies to their latest and the gradle sync successfully but when I build/run the project I get the error below:
> Task :common:kspStagingMyAppDebugKotlinAndroid FAILED
e: -api-version (2.0) cannot be greater than -language-version (1.9)
I can add the stack trace if needed!