I'm trying to setup kotlin plugin for android studio and following this guide. Everything compiles fine and I can use .kt files in my project. However, in every kotlin files android-studio says the following:
Kotlin library 'compiler-1.0-rc1.jar' has an unsupported format. Please update library or plugin
How can I 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 my 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'm using Android studio 1.4,
buildToolsVersion 23.0.1,
Android studio kotlin plugin version 0.14.449.Idea141.12
mavenCentral()but it hasn't helped. I cannot remove jcenter() because otherwise gradle cannot resolvedatabindinglibrary.