我在android studio中面临新问题。我看不到我的任何项目。我可以看到一个空白的屏幕。
我得到了这样的错误。
java.lang.NullPointerException
at com.intellij.openapi.application.impl.ApplicationImpl.confirmExitIfNeeded(ApplicationImpl.java:877)
at com.intellij.openapi.application.impl.ApplicationImpl.access$900(ApplicationImpl.java:92)
at com.intellij.openapi.application.impl.ApplicationImpl$16.run(ApplicationImpl.java:827)
at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:840)
at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:789)
at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:784)
at com.intellij.openapi.wm.impl.IdeFrameImpl$5$1.run(IdeFrameImpl.java:275)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:345)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:329)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:857)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:658)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
现在我无法打开我的所有项目&面临麻烦完成我的任务。 任何帮助?
答案 0 :(得分:1)
最后我可以恢复这个问题。我正在使用Windows操作系统。我打开任务管理器并关闭Android Studio程序。在重新打开Android Studio之后,我回到了我之前设置的所有项目链接的首选项。
可以遵循@Martin Revert Solution。但请记住,所有项目首选项都将被删除,您可能需要设置SDK路径和所有必要的东西。否则你可以按照我的解决方案。