https://kotlinlang.org logo
#android
Title
# android
k

Kvikende

01/16/2018, 2:58 PM
I am using Android Studio 3.0.1 and I was prompted to update my kotlin plugin to version "1.2.10-release-Studio3.0-1", which I did. Now nothing works because I get a "Plugin Error: Kotlin threw an uncaught AbstractMethodError." on startup. I changed to
Copy code
ext.kotlin_version = '1.2.10'
but still I get the error. Im not sure what to do now. Any suggestions? Edit: I got a new error during this start up:
Copy code
Plugin Error: Kotlin threw an uncaught NoSuchMethodError.
before the AbstractMethodError.
r

Roxana Nistor

01/16/2018, 3:01 PM
if you are using Anko this may be an incompatibility
k

Kvikende

01/16/2018, 3:03 PM
No, I'm pretty sure I'm not using Anko. 😕 Thanks anyway!
I got the fatal IDE dialog!
Copy code
org.jetbrains.kotlin.android.synthetic.AndroidCommandLineProcessor$Companion.getEXPERIMENTAL_OPTION()Lorg/jetbrains/kotlin/compiler/plugin/CliOption;
java.lang.NoSuchMethodError: org.jetbrains.kotlin.android.synthetic.AndroidCommandLineProcessor$Companion.getEXPERIMENTAL_OPTION()Lorg/jetbrains/kotlin/compiler/plugin/CliOption;
	at org.jetbrains.kotlin.android.synthetic.idea.AndroidExtensionsGradleImportHandler.importByModule(AndroidExtensionsProjectResolverExtension.kt:136)
....
and
Copy code
java.lang.AbstractMethodError
	at org.jetbrains.kotlin.frontend.di.InjectionKt.configureModule(injection.kt:56)
	at org.jetbrains.kotlin.frontend.di.InjectionKt.configureModule(injection.kt:73)
	at org.jetbrains.kotlin.frontend.java.di.InjectionKt$createContainerForLazyResolveWithJava$1.invoke(injection.kt:87)
	at org.jetbrains.kotlin.frontend.java.di.InjectionKt$createContainerForLazyResolveWithJava$1.invoke(injection.kt)
...
v

vsazel

01/18/2018, 10:50 AM
I'm having this too. I have module with java library. I have this dependencies:
Copy code
implementation fileTree(dir: 'libs', include: ['*.jar'])
    compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
    testCompile "org.jetbrains.kotlin:kotlin-test"
    testCompile "org.jetbrains.kotlin:kotlin-test-junit"
    testCompile 'io.appium:java-client:5.0.4'
correction I have different message
Copy code
Plugin Error: Kotlin threw an uncaught AbstractMethodError.
and with 1.2.20
6 Views