如何在Android Studio上设置Kotlin?

Kotlin插件在Android Studio中的设置有问题吗? 有人可以帮助我吗? 我按照官方页面https://kotlinlang.org/上的文档指南,但没有效果。

只需添加你的gradle文件

apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' 

它会自动问顺势gradle后,它显示更新kotlin设置,然后点击更新它会自动从互联网下载安装文件,并在android工作室自动更新。

像build.gradle

 apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 26 buildToolsVersion "26.0.0" defaultConfig { applicationId "com.example.cricut.androidkotlin" minSdkVersion 15 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } }