1

In android studio im getting an error:

Plugin Error: Kotlin threw an uncaught AbstractMethodError. Disable Plugin

Yesterday everything was fine. Gradle:

buildscript {
    ext.kotlin_version = '1.1.51'
    repositories {
        google()
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

Android studio version: 3.0.1 Build #AI-171.4443003

Even more: if i create new android project with kotlin support in fails with the same error.

#EDIT1

Full root gradle build script.

buildscript {
    ext.kotlin_version = '1.1.60'
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

1.1.60 does not help. Still same error. And still getting

Your version of Kotlin runtime in 'org.jetbrains.kotlin:kotlin-stdlib:1.1.51@jar' library is 1.1.51, while plugin version is 1.1.60-release-Studio3.0-1. 

Even after updating to 1.1.60

4
  • add your whole build.gradle Commented Nov 24, 2017 at 9:05
  • What version is the plugin? Commented Nov 24, 2017 at 9:05
  • @Toolazy you got solution Commented Nov 24, 2017 at 9:49
  • yeah, posted the answer
    – TooLazy
    Commented Nov 24, 2017 at 9:52

2 Answers 2

2

Plugin Error: Kotlin threw an uncaught AbstractMethodError.

You should upgrade kotlin_version. Use 1.1.60 instead of 1.1.51.

   ext.kotlin_version = '1.1.60'

NOTE

1.1.60 is BUGGY. Downgrade your Version.

Then Clean-Rebuild-Gradle.

2
0

As @IntelliJ Amiya mentioned downgrading kotlin plugin back to 1.1.51 did the trick. 1.1.60 buggy(

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.