Avatar ·

Warning "Outdated Kotlin Runtime" in Android Studio: how to fix?

Hi! I just started learning Kotlin for Android development and ran into a strange problem. After I updated Android Studio to the latest version and created a new project, a warning started appearing in the editor: "Outdated Kotlin Runtime". It looks like this: a yellow bar appears at the top of the editor with the text: "Outdated Kotlin Runtime | Kotlin runtime JAR files in the classpath have the version 1.4.0, but the Kotlin compiler used in the project is 1.5.0. This can lead to compilation errors or runtime crashes." I'm using Kotlin version 1.5.0 in the build.gradle file: ```kotlin plugins { id 'com.android.application' version '7.0.0' id 'org.jetbrains.kotlin.android' version '1.5.0' } ``` But when running the app on an emulator or real device, it sometimes crashes.