为什么kotlin不能在安装kotlin插件的andriod studio中工作

在这里输入图像描述 我是KotlinAndroid Studio新手,但至少我按照JetBrains网站上的说明进行设置,但是我坚持不懈地与这些错误作斗争:

 Error:(16, 0) Extension with name 'android' does not exist. Currently registered extension names: [ext, kotlin] 

谷歌已经宣布对Android Studio 3.0 +的Kotlin支持。 加拿大频道提供Android Studio 3.0。 尝试使用Android Studio 3.0 Canary以获得适量的Kotlin Android语言的支持和易用性。

请参阅https://kotlinlang.org/docs/reference/using-gradle.html#targeting-android

 buildscript { ext.kotlin_version = '<version to use>' ... dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } apply plugin: 'com.android.application' apply plugin: 'kotlin-android' 

看起来你错过了

  apply plugin: 'com.android.application' 

Android Studio 2.3.3不支持kotlin sdk下载android studio 3.0


 https://developer.android.com/studio/preview/index.html