【问题标题】:Intellij 2019 2.3 Exception in plugin Andriod SupportIntellij 2019 2.3 插件 Andriod 支持中的异常
【发布时间】:2020-02-20 08:36:17
【问题描述】:

我需要帮助,在 activity_main.xml 中的设计选项卡上,单击小部件会导致错误。此外,无论我单击哪个小部件的属性面板都是空白的,有时会显示加载但从未出现。尝试切换到“所有属性视图”,但仍然可以更改任何属性。 已经尝试停用即时运行,使缓存无效,IntelliJ 版本稍旧,删除并重新下载 IntelliJ 和“清理项目”

错误信息:

java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/windows/WindowsComboBoxUI
    at com.android.tools.idea.common.property.editors.EnumEditor$CustomComboBox.setUI(EnumEditor.java:470)
    at java.desktop/javax.swing.JComboBox.updateUI(JComboBox.java:277)
    at java.desktop/javax.swing.JComboBox.init(JComboBox.java:236)
    at java.desktop/javax.swing.JComboBox.<init>(JComboBox.java:230)
    at com.intellij.openapi.ui.ComboBoxWithWidePopup.<init>(ComboBoxWithWidePopup.java:15)
    at com.intellij.openapi.ui.ComboBox.<init>(ComboBox.java:44)
    at com.android.tools.idea.common.property.editors.EnumEditor$CustomComboBox.<init>(EnumEditor.java:440)
    at com.android.tools.idea.uibuilder.property.editors.NlEnumEditor.createForInspectorWithBrowseButton(NlEnumEditor.java:45)
    at com.android.tools.idea.uibuilder.property.inspector.IdInspectorProvider$IdInspectorComponent.<init>(IdInspectorProvider.java:96)
    at com.android.tools.idea.uibuilder.property.inspector.IdInspectorProvider.createCustomInspector(IdInspectorProvider.java:74)
    at com.android.tools.idea.uibuilder.property.inspector.IdInspectorProvider.createCustomInspector(IdInspectorProvider.java:39)
    at com.android.tools.idea.common.property.inspector.InspectorProviders.createInspectorComponents(InspectorProviders.java:54)
    at com.android.tools.idea.common.property.inspector.InspectorPanel.setComponent(InspectorPanel.java:260)
    at com.android.tools.idea.uibuilder.property.NlPropertiesPanel.setItems(NlPropertiesPanel.java:281)
    at com.android.tools.idea.common.property.PropertiesManager.lambda$null$0(PropertiesManager.java:247)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:824)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:773)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:412)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:704)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:411)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.ClassNotFoundException: com.sun.java.swing.plaf.windows.WindowsComboBoxUI PluginClassLoader[org.jetbrains.android, 10.3.4] com.intellij.ide.plugins.cl.PluginClassLoader@7355d4d1
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:75)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ... 33 more

【问题讨论】:

    标签: android android-studio intellij-idea plugins


    【解决方案1】:

    IDE 用来调优的 11 JDK 的兼容性问题。将 IDE 配置为在 1.8 JDK 下运行:可以从 bintray 下载并按照 Switch boot JDK 步骤通过 JDK Switcher 进行设置,或者从 Other IntelliJ IDEA Versions 下载带有捆绑 8 JBR 的 IntelliJ IDEA。

    【讨论】:

      猜你喜欢
      • 2018-10-03
      • 1970-01-01
      • 2018-09-05
      • 1970-01-01
      • 1970-01-01
      • 2017-07-25
      • 2014-09-01
      • 1970-01-01
      • 2014-12-25
      相关资源
      最近更新 更多