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 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.

Sign up to request clarification or add additional context in comments.

2 Comments

not helped. Getting message 'clean finished'. But in preview window 'waiting for build to finish'.
0

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

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.