前言
小编下载了最新版的 Intellij IDEA(2023.1.1),正常安装完成后,在打开的时候发生了错误,导致程序无法运行。
详细了解了一下异常内容,自己研究了一番,又在网上找了很多办法,最后解决了问题。将经验分享一下,希望能帮到各位道友。
正文
1. 问题描述
Intellij IDEA下载地址:https://www.jetbrains.com/idea/download/#section=windows
我当时下载的是 《Intellij IDEA 2023.1.1 windows》 版本,正常安装完成后,以桌面快捷方式打开,会产生下面的异常,导致程序无法正常使用。
Internal error. Please refer to https://jb.gg/ide/critical-startup-errors
com.intellij.diagnostic.PluginException: Fatal error initializing 'com.alibaba.p3c.idea.component.CommonSettingsApplicationComponent
com.intellij.diagnostic.PluginException: Fatal error initializing ‘com.alibaba...
' [Plugin: com.alibaba.p3c.smartfox]
at com.intellij.serviceContainer.ComponentManagerImpl.handleInitComponentError$intellij_platform_serviceContainer(ComponentManagerImpl.kt:612)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:416)
at com.intellij.serviceContainer.ComponentManagerImpl.access$registerComponents(ComponentManagerImpl.kt:69)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:294)
at com.intellij.openapi.client.ClientAwareComponentManager.registerComponents(ClientAwareComponentManager.kt:46)
at com.intellij.idea.ApplicationLoader.doInitApplication(ApplicationLoader.kt:86)
at com.intellij.idea.ApplicationLoader.access$doInitApplication(ApplicationLoader.kt:1)
at com.intellij.idea.ApplicationLoader$doInitApplication$1.invokeSuspend(ApplicationLoader.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
at com.intellij.idea.ApplicationLoader.initApplication(ApplicationLoader.kt:63)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.intellij.idea.q.q(q.java:73)
at com.intellij.ide.u.Q.qr.q(qr.java:139)
at com.intellij.ide.u.Q.qx.q(qx.java:196)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.intellij.idea.MainImpl.start(MainImpl.kt:62)
at com.intellij.idea.StartupUtil$startApplication$7.invokeSuspend(StartupUtil.kt:297)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
at com.intellij.idea.Main.main(Main.kt:40)
Caused by: java.lang.ClassNotFoundException: com.alibaba.p3c.idea.component.CommonSettingsApplicationComponent
PluginClassLoader(plugin=PluginDescriptor(name=Alibaba Java Coding Guidelines, id=com.alibaba.p3c.smartfox, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\IntelliJIdea2023.1\plugins\Alibaba Java Coding Guidelines, version=2.1.0, package=null, isBundled=false), packagePrefix=null, instanceId=123, state=active)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.kt:150)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponent(ComponentManagerImpl.kt:536)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:408)
... 33 more-----
Your JRE: 17.0.6+10-b829.9 amd64 (JetBrains s.r.o.)
D:\MyDocument\JetBrains\IntelliJ IDEA 2023.1.1\jbr
2. 问题截图
3. 问题原因
问题原因:经过研究发现,这是新下载的IDEA缺少了一个plugin包造成的。
解决办法:到IDEA官方插件库下载响应插件,解压后复制到下面路径中plugins文件夹中。
插件位置:https://plugins.jetbrains.com/plugin/10046-alibaba-java-coding-guidelines/versions
4. 方法步骤
- 第一步:下载插件,最新版本2.1.1
- 第二步:将解压后的插件放到《Intellij IDEA 2023.1.1》 安装目录 /plugin 目录下
- 第三步:重新启动 Intellij IDEA 2023.1.1
总结
-
Intellij IDEA下载地址:https://www.jetbrains.com/idea/download/#section=windows
-
Alibaba Java Coding Guidelines 插件位置:https://plugins.jetbrains.com/plugin/10046-alibaba-java-coding-guidelines/versions文章来源:https://www.toymoban.com/news/detail-516378.html
希望可以帮到你......文章来源地址https://www.toymoban.com/news/detail-516378.html
到了这里,关于打开Intellij IDEA(2023.1.1)报错:com.intellij.diagnostic.PluginException: Fatal error initializing ...的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!