How to go back to a previous version of the IntelliJ Kotlin plugin?


I’ve just updated the IntelliJ Kotlin plugin to 1.2.60, but now I get the following error:

Error:Kotlin: [Internal Error] java.lang.IllegalStateException: The provided plugin org.jetbrains.kotlin.kapt3.Kapt3ComponentRegistrar is not compatible with this version of compiler
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.<init>(KotlinCoreEnvironment.kt:198)
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.<init>(KotlinCoreEnvironment.kt:117)
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$Companion.createForProduction(KotlinCoreEnvironment.kt:446)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.createCoreEnvironment(K2JVMCompiler.kt:295)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:147)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:51)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(
	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:88)
	at org.jetbrains.kotlin.daemon.CompileServiceImpl$compile$$inlined$ifAlive$lambda$1.invoke(CompileServiceImpl.kt:402)
	at org.jetbrains.kotlin.daemon.CompileServiceImpl$compile$$inlined$ifAlive$lambda$1.invoke(CompileServiceImpl.kt:101)
	at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:929)
	at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:101)
	at org.jetbrains.kotlin.daemon.common.DummyProfiler.withMeasure(PerfUtils.kt:137)
	at org.jetbrains.kotlin.daemon.CompileServiceImpl.checkedCompile(CompileServiceImpl.kt:969)
	at org.jetbrains.kotlin.daemon.CompileServiceImpl.doCompile(CompileServiceImpl.kt:928)
	at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:400)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at sun.rmi.server.UnicastServerRef.dispatch(
	at sun.rmi.transport.Transport$
	at sun.rmi.transport.Transport$
	at Method)
	at sun.rmi.transport.Transport.serviceCall(
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(
	at Method)
	at sun.rmi.transport.tcp.TCPTransport$
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$
Caused by: java.lang.AbstractMethodError
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.<init>(KotlinCoreEnvironment.kt:190)
	... 33 more

This error occurs whether I update the Kotlin stuff in build.gradle to 1.2.60 too or stay with 1.2.51.

So, I want to go back to the previous version of the Kotlin plugin to be able to work on my project. How can I do that?


It seems like IntelliJ had changed the JVM target version to 1.6. I reset it to 1.8 and now I’m able to compile.

However, it would be good to know how to go back to a previous version of the Kotlin plugin in case of a plugin error.


You can download a previous version of the plugin for your IDE here and then use the “Install plugin from disk” action.


Thank you!


Alternatively when switching between release streams uninstall the plugin (normally reverting back to the version bundled with the IDE) and then update again with the correct stream.


The same error occurred again after the recent minor update. This is pretty annoying! The bad thing is that I can not simple reset the target JVM version in this case. The update process of the Kotlin plugin seems to be very fragile.


This time I helped myself with the following:

  • uninstall the Kotlin plug-in 1.2.60 (so that 1.2.51 delivered with IntelliJ is effective again)
  • revert to Kotlin 1.2.51 in build.gradle
  • remove all IntellIj related stuff from project directory (.idea/, *.iml)
  • restart IntelliJ
  • re-import project

As I’ve already said: This is ANNOYING! I suggest that JetBrains should keep the compiler interface more stable.


I’m getting the same error. For me I was able to fix it by downgrading Kotlin version from 1.2.60 to 1.2.51, even using the wrong plugin version in Intellij.