android studio not starting java.lang.NoSuchMethodError

Viewed 2976

i get this error when starting android studio

java.lang.NoSuchMethodError: com.intellij.ide.plugins.PluginManagerCore.loadDescriptors()[Lcom/intellij/ide/plugins/IdeaPluginDescriptorImpl;
at com.a.a.b.b.ar.a(ar.java:121)
at com.a.a.b.b.ar.a(ar.java:71)
at com.intellij.idea.MainImpl.start(MainImpl.java:19)
at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:303)
at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:245)
at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:47)
at java.lang.Thread.run(Thread.java:748) .... JRE 1.8.0_242 release-1644-b3-6222593 amd64 by JetBrains s.r.o ***/opt/android-studio-ide-201.6858069-linux/android-studio/jre/jre 

my operating system is ubuntu 20.04 LTS 64bit

6 Answers

I first encountered this issue after updating my Android Studio to 4.0.1 allbeit on a MacOS. To fix this issue, please take the following steps:

  1. Go to the directory ~/Library/Application Support/AndroidStudio
  2. You would find marketplace folder in this location.
  3. Rename this folder and attempt starting Android Studio again.
  4. When Android Studio starts up again, go to Android Studio -> Preferences
  5. Goto Plugins and click installed.
  6. The incompatible plugins would surface at this stage. Click delete/uninstall for these plugins.
  7. Restart the IDE and all should be perfect.

That error indicates an issue in IDE plugins.

Remove the Android Studio folder in ~/.local/share/Google/.

This should fix your issue.

I had the same problem on my machine. It was solved by deleting the plugins folder located in .local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.6953283.plugins/marketplace. Note that 201.6953283 was my current version of Android Studio.

You can use the canary build until Google releases v4.2. This worked for me. Just open software install and search for "android studio canary."

I ran into this issue after upgrading from Android Studio 4.0.1 to 4.1.1, but solved it by deleting some plugins under the directory ~/.local/share/Google/AndroidStudio4.1. The plugins I deleted were:

idea-multimarkdown
Gauge-Java-Intellij
markdown
marketplace

i dont know what cause this issue but run it as sudo solve it .
your installation directory is /opt so run this command on terminal

sudo ./opt/androidStudioDirectory/bin/studio.sh
Related