Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure Kotlin version in Android Studio?

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?

project's build.gradle

Android Studio's Settings

like image 794
Wang Ke Avatar asked Jul 18 '17 06:07

Wang Ke


3 Answers

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.

enter image description here

like image 102
Manish Kumar Avatar answered Oct 20 '22 14:10

Manish Kumar


In the newer versions of the Android Studio project,

Go to build.gradle(Project)

Gradle File

change version of that compiler will ask you to update.

like image 9
Arpit Patel Avatar answered Oct 20 '22 14:10

Arpit Patel


In your Android studio, Go to Tools -> Kotlin -> Configure Kotlin Updates.

For more details you can check https://segunfamisa.com/posts/setting-up-android-studio-for-kotlin-development

like image 4
GAGAN BHATIA Avatar answered Oct 20 '22 14:10

GAGAN BHATIA