2013-10-31 73 views
5

我遇到此問題啓動了文件>項目結構。每次我想我被告知以下內容:Android Studio中的「項目結構」不會啓動

3:40:36 PM NullPointerException: null 
3:40:47 PM Throwable: module editors was not disposed 
3:40:49 PM Throwable: module editors was not disposed (on second try) 

顯然,第一個問題是,由於在Android支持插件的異常,第二和第三個是由於在Android Studio中的一個例外核心。任何人都知道這意味着什麼以及我如何解決它?

編輯:這些問題的細節:

module editors was not disposed 
java.lang.Throwable 
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:113) 
at com.intellij.openapi.roots.ui.configuration.ModulesConfigurator$5.run(ModulesConfigurator.java:196) 
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1002) 
at com.intellij.openapi.roots.ui.configuration.ModulesConfigurator.resetModuleEditors(ModulesConfigurator.java:192) 
at com.intellij.openapi.roots.ui.configuration.projectRoot.StructureConfigurableContext.reset(StructureConfigurableContext.java:176) 
at com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable.reset(ProjectStructureConfigurable.java:336) 
at com.intellij.openapi.options.ex.SingleConfigurableEditor.<init>(SingleConfigurableEditor.java:66) 
at com.intellij.openapi.options.ex.SingleConfigurableEditor.<init>(SingleConfigurableEditor.java:89) 
at com.intellij.openapi.options.ex.SingleConfigurableEditor.<init>(SingleConfigurableEditor.java:104) 
at com.intellij.ide.actions.ShowSettingsUtilImpl.editConfigurable(ShowSettingsUtilImpl.java:242) 
at com.intellij.ide.actions.ShowSettingsUtilImpl.editConfigurable(ShowSettingsUtilImpl.java:217) 
at com.intellij.ide.actions.ShowStructureSettingsAction.actionPerformed(ShowStructureSettingsAction.java:40) 
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:162) 
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:260) 
at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:892) 
at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:114) 
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:230) 
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) 
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:104) 
at com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:512) 
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:44) 
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:532) 
at java.awt.Component.processMouseEvent(Component.java:6505) 
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321) 
at java.awt.Component.processEvent(Component.java:6270) 
at java.awt.Container.processEvent(Container.java:2229) 
at java.awt.Component.dispatchEventImpl(Component.java:4861) 
at java.awt.Container.dispatchEventImpl(Container.java:2287) 
at java.awt.Component.dispatchEvent(Component.java:4687) 
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832) 
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492) 
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422) 
at java.awt.Container.dispatchEventImpl(Container.java:2273) 
at java.awt.Window.dispatchEventImpl(Window.java:2719) 
at java.awt.Component.dispatchEvent(Component.java:4687) 
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735) 
at java.awt.EventQueue.access$200(EventQueue.java:103) 
at java.awt.EventQueue$3.run(EventQueue.java:694) 
at java.awt.EventQueue$3.run(EventQueue.java:692) 
at java.security.AccessController.doPrivileged(Native Method) 
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) 
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) 
at java.awt.EventQueue$4.run(EventQueue.java:708) 
at java.awt.EventQueue$4.run(EventQueue.java:706) 
at java.security.AccessController.doPrivileged(Native Method) 
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) 
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705) 
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:696) 
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:520) 
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335) 
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) 
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) 
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) 
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) 
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) 
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) 

回答

0

我有完全一樣的問題&異常,但只是在我的主要項目,其中有Java的,安卓的混合物, Groovy和Robolectric模塊。我認爲試圖讓Robolectric在AS工作導致你描述的問題,但我不是100%確定的。

長話短說:在.idea文件夾中編輯IML文件和配置文件幾個小時後,我放棄了;創建一個新項目,然後爲原始項目中的每個模塊創建一個I) i)在所需類型的新項目(Java/Android等)中手動重新創建一個空模塊 ii)複製源代碼(和gradle文件)到新項目。我沒有複製任何.iml或.idea配置文件。

不是一個很好的解決方案,但我得到了項目結構對話框。現在一切似乎都很好。

2

我有同樣的issue.Try以下

密切的Android studio.Open CMD

嘗試亞行kill-server和亞行start-server並重新啓動亞行,然後工作室。

+0

謝謝它適合我。 –

1

enter image description here

取消選擇option.I認爲這是一個錯誤。

相關問題