After updating to Android Studio4.1, I found the solution to as not opening

Preface

I received the as update 4.1 push today, and found that it could not be opened after the update, and reported the following error

Internal error. Please refer to https://code.google.com/p/android/issues

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-b01 amd64 by JetBrains s.r.o
C:\Program Files\Android\Android Studio\jre\jre

So I checked it, and the problem was indeed corrected, so I recorded it

problem lies in

The root of the problem is actually that some plug-ins do not support high versions, and then they can't be started. To be honest, they can't be started directly, which is not human at all.

The solution is: go to this directory

C:\Users\{user}\AppData\Roaming\Google\AndroidStudio4.1\plugins

Then copy all the folders or jar packages (in fact, the plug-ins you downloaded yourself), and delete the original location, try to open it, if you can, use the binary search method to find which plug-in does not support, Then it's ok without this plugin

ps: Note: Be sure to copy and delete, not cut, understand everything

If you can't remove all of the above directories, there may be a problem with the built-in plug-in (the probability is small), the directory is here, and it is also a binary search and test by yourself

C:\Program Files\Android\Android Studio\plugins

The problem can generally be solved

end

Guess you like

Origin blog.csdn.net/qq_33505109/article/details/109045311