Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android studio not starting java.lang.NoSuchMethodError

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

like image 318
Alex Avatar asked Dec 14 '22 07:12

Alex


2 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.
like image 198
Adeyemi Avatar answered Dec 15 '22 21:12

Adeyemi


That error indicates an issue in IDE plugins.

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

This should fix your issue.

like image 32
Syed Mushaheed Avatar answered Dec 15 '22 20:12

Syed Mushaheed