Android Studio Start Failed - ClassNotFoundException: com.intellij.ide.plugins.PluginManager

与世无争的帅哥 提交于 2019-12-10 15:54:33

问题


After installing Android Studio on a new Win8.1x64 machine, whenever I try to launch it I get a ClassNotFoundException: com.intellij.ide.plugins.PluginManager and Studio does not start. I have tried unzipping instead of installing, restarting the computer several times, cleaning all Android Studio related settings and files, still no result.

I have installed the latest JDK and the SDK. JAVA_HOME variable is set as well. Any idea what is going on? It's driving me nuts already. I would appreciate any help!

Here are the three different errors that randomly come up when I try to launch Android Studio.

java.lang.ClassNotFoundException: com.intellij.ide.plugins.PluginManager
at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:148)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.intellij.ide.Bootstrap.main(Bootstrap.java:37)
at com.intellij.idea.Main.main(Main.java:84)

.

java.lang.NoClassDefFoundError: com/intellij/openapi/extensions/LogProvider
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.intellij.ide.Bootstrap.main(Bootstrap.java:37)
at com.intellij.idea.Main.main(Main.java:84)
Caused by: java.lang.ClassNotFoundException: com.intellij.openapi.extensions.LogProvider
at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:148)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 4 more

.

java.lang.NoClassDefFoundError: com/intellij/openapi/extensions/PluginDescriptor
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:195)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:191)
at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:152)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.intellij.ide.Bootstrap.main(Bootstrap.java:37)
at com.intellij.idea.Main.main(Main.java:84)
Caused by: java.lang.ClassNotFoundException: com.intellij.openapi.extensions.PluginDescriptor
at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:148)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 12 more

回答1:


For anyone who has a similar problem, the errors were caused by antivirus software (in this case Avast). After uninstalling it I was able to normally install and start Android Studio. I'm not sure exactly what is happening between Avast and Android Studio, but this solved the problem.

Also, I installed Avast back and now I get multiple IllegalStateExceptions and NullPointerExceptions in the Android Studio Event Log, but these do not interfere with working in AS normally.



来源:https://stackoverflow.com/questions/29317818/android-studio-start-failed-classnotfoundexception-com-intellij-ide-plugins-p

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!