Kotlin plugin error in android studio

I am trying to configure the kotlin plugin for android studio and follow this guide . Everything compiles fine, and I can use the files .ktin 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.gradlein appdir:

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

+4
source share
2

kotlin. , , , , kotlin 0.12.613.

reddit.

1.0-rc4, , M14.

+2

. :

...

" " , ABI , Kotlin, , Kotlin. Kotlin 1.0 Betas, ABI 1.0. 1.0 release-, , , . .

, ABI " 1.0", . .

Kotlin 1.0 Beta 4 " ":

RC, 1.0.

, Kotlin 1.0, RC . JetBrains, .

:

  • , ,
  • (, , , !),
  • -, -,
  • stdlib , .

- ( API). API , .

+1

Source: https://habr.com/ru/post/1611638/


All Articles