如何更改 Android Studio 中的版本?

How to change the Version in AndroidStudio?

我在构建时收到以下消息:

e: This version (1.0.1) of the Compose Compiler requires Kotlin version 1.5.21 
but you appear to be using Kotlin version 1.5.30 which is not known to be compatible. 
 Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 713ms

有人知道怎么改版本吗?

感谢任何帮助

您必须更改 project-level build.gradle 文件中的 Kotlin 版本:

dependencies {
        classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21'
    }

并且也在 app-level build.gradle 文件中。

dependencies {
    implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.21'
}