36

I have just updated Android studio 2.2.2 to 2.3 from the canary channel. After downloading completed and applying path file, the android studio is restarting. But after restarting android studio I am getting below error with dialog:

Cannot load project: com.intellij.ide.plugins.PluginManager$StartupAbortedException: com.intellij.diagnostic.PluginException: Could not initialize class org.jetbrains.kotlin.android.actions.NewKotlinActivityAction [Plugin: org.jetbrains.kotlin]

See below screenshot for to get more idea:

android studio kotline error 1

After closing dialog by ok and restarting android studio, also I can't able to open my project or creating new project.

android studio kotline error 2

Does anyone is facing same issue after updating android studio?

ForceMagic
  • 6,230
  • 12
  • 66
  • 88
pRaNaY
  • 24,642
  • 24
  • 96
  • 146

5 Answers5

47

Disable the Kotlin plugin and restart Android Studio. I had the same error even after I updated the plugin. So disabling seems to be the solution for now -- unless you're using Kotlin, I guess.

The Kotlin team confirmed a fix is in the works via twitter: https://twitter.com/kotlin/status/797111726516879360

Michael De Soto
  • 1,238
  • 12
  • 24
  • 4
    Yes. I just disable kotlin plugin from **Settings -> Plugins -> Kotlin** and restarting android studio. it is worked for me. – pRaNaY Nov 12 '16 at 15:36
  • Also reported issue for the same : https://code.google.com/p/android/issues/detail?id=227576 – pRaNaY Nov 12 '16 at 15:44
  • 1
    The same bug continues to exist at the end of 2017.... Why do they say they SUPPORT Kotlin? – Gangnus Dec 19 '17 at 22:54
9

The issue is fixed in Kotlin plugin version 1.0.5-2.

yole
  • 92,896
  • 20
  • 260
  • 197
  • Thanks @yole. I just installed the new version of kotlin and it's working fine. – pRaNaY Nov 15 '16 at 16:35
  • 4
    Unfortunately the same issue exist in 1.1.60 and Studio3.0-1 – Stoycho Andreev Nov 16 '17 at 11:42
  • @Sniper Yes, I have IntelliJ 17.1 and Kotlin 1.1.1. Just now in 12.2017 I have installed every last version... And the same problem. It seems, IJ becomes even more unstable that Eclipse. – Gangnus Dec 19 '17 at 22:49
9

Issue is fixed in new update of Kotlin, you can update your plugin from

Configuration>Plugin>Install JetBrains Plugin>Select "Kotlin" from List and hit "Update" from right menu

enter image description here

Muhammad Adil
  • 4,358
  • 3
  • 32
  • 36
2

Updating the 'ext.kotlin_version' on root build.gradle to the latest fixed the issue for me. Use this link to find the latest kotlin version.

1

This happened to me just today after updating my Kotlin's plug-in verison from 1.1.51 to 1.1.60. I had to uninstall this version from Settings > Pluings in Android Studio and install the previous one, which can be downloaded from JetBrains plug-ins repository.

If you're using Android Studio 3.0, you don't need to install the previous version of the plug-in again since version 1.1.51 is built-in in Android Studio.

Juan José Melero Gómez
  • 2,742
  • 2
  • 19
  • 36