I have configured the Kotlin version in project’s build.gradle. But in Other Settings->Kotlin Compiler , it shows an older version.
How to fix that?
It is not showing you outdated version. Let’s say your plugin version is ‘1.1.3’, so your compiler version is ‘1.1’ not ‘1.1.3’. Now, if you will update your kotlin by going in
Tools > Kotlin > Configure Kotlin Updates
to early access version ‘1.2’ as shown in screenshot below, you will be able to see ‘1.2’ in you ‘Kotlin compiler’ settings.
In your Android studio,
Go to Tools -> Kotlin -> Configure Kotlin Updates.
For more details you can check
Open you project gradle and add this line
After configuration project Gradle you need to add app Gradle. add kotlin plugin after android plugin like this
apply plugin: 'com.android.application' apply plugin: 'kotlin-android'
And the Last step add dependencies
And Click SYNC Project.