After updating to Android Studio 4.1 it was found that as could not be opened. Cause analysis of of
- 2021-12-09 10:05:04
- OfStack
Preface
Today, I received as update 4.1 push, and after that, I found that I couldn't open it. I 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 really corrected the problem, so I recorded 1
The problem
The root of the problem is that some plug-ins do not support high versions, and then they can't start up. To tell the truth, if they can't start up directly, it doesn't seem humane at all
The solution is to go to this directory
C:\Users\{user}\AppData\Roaming\Google\AndroidStudio4.1\plugins
Then all the folders or jar package (in fact, you download plug-ins) to copy out, and delete the original location, try 1 can open, if you can, use 2 points to find which plug-ins do not support, and then do not use this plug-in on ok
ps: Note: 1 Be sure to copy in delete, not cut, understand everything
If the above directory is removed, it may be that there is a problem with the plug-in (the probability is very small). The directory is here, and it is also your own 2 points to find and test 1.
C:\Program Files\Android\Android Studio\plugins
Problem 1 can be solved in general