I am trying to configure the kotlin plugin for android studio and follow this guide . Everything compiles fine, and I can use the files .kt
in my project. However, in every kotlin file, Android Studio says the following:
The Kotlin-1.0-rc1.jar compiler library is in an unsupported format. Update the library or plugin.
How to remove this warning / error?
Here is my top level build.gradle
:
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'me.tatarka:gradle-retrolambda:3.2.3'
classpath "com.android.databinding:dataBinder:1.0-rc1"
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:0.14.449'
}
}
allprojects {
repositories {
mavenCentral()
jcenter()
}
}
Here is mine build.gradle
in app
dir:
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
//Ommited for brevity
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
}
dependencies {
compile 'org.jetbrains.kotlin:kotlin-stdlib:0.14.449'
}
I am using Android studio 1.4,
buildToolsVersion 23.0.1,
Android version of kotlin version 0.14.449.Idea141.12
source
share