After updating Android Studio from 3.6 to 4.0, close project not works

偶尔善良 提交于 2020-08-27 03:46:56

问题


The same question as this one. I have two android projects on two windows, when I close one project by clicking [x] icon on my mac, the project closed but the window exists with a blank screen.

My Android Studio Version info:

Android Studio 4.0
Build #AI-193.6911.18.40.6514223, built on May 20, 2020
Runtime version: 1.8.0_242-release-1644-b3-6222593 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.4
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 12
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: org.jf.smalidea

The Exception stack trace in Studio core:

java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:657)
    at java.util.ArrayList.get(ArrayList.java:433)
    at java.awt.Container.removeNotify(Container.java:2798)
    at javax.swing.JComponent.removeNotify(JComponent.java:4759)
    at com.intellij.ui.tabs.impl.JBTabsImpl.removeNotify(JBTabsImpl.java:553)
    at java.awt.Container.removeNotify(Container.java:2807)
    at javax.swing.JComponent.removeNotify(JComponent.java:4759)
    at java.awt.Container.removeNotify(Container.java:2807)
    at javax.swing.JComponent.removeNotify(JComponent.java:4759)
    at java.awt.Container.removeNotify(Container.java:2807)
    at javax.swing.JComponent.removeNotify(JComponent.java:4759)
    at java.awt.Container.removeNotify(Container.java:2807)
    at javax.swing.JComponent.removeNotify(JComponent.java:4759)
    at java.awt.Container.removeNotify(Container.java:2807)
    at javax.swing.JComponent.removeNotify(JComponent.java:4759)
    at java.awt.Container.removeNotify(Container.java:2807)
    at javax.swing.JComponent.removeNotify(JComponent.java:4759)
    at java.awt.Container.remove(Container.java:1209)
    at java.awt.Container.remove(Container.java:1267)
    at com.intellij.openapi.wm.impl.IdeRootPane.setToolWindowsPane(IdeRootPane.java:192)
    at com.intellij.openapi.wm.impl.ProjectFrameHelper$1.releaseFrame(ProjectFrameHelper.java:178)
    at com.intellij.openapi.wm.impl.IdeFrameImpl.releaseFrame(IdeFrameImpl.java:158)
    ...

回答1:


I have also experienced this problem since updated to 4.0 (Windows).

for now, I'm just closing a project from File > Close Project, that works fine for me.




回答2:


The recent update 4.0.1 fix the issue. :) Help > Check for updates

I have also experienced this problem since updated to 4.0 (Linux Mint).

Just closing a project from File > Close Project, does not works for me.

Only file > exit and reopen android studio remove the blank windows.




回答3:


If the project you want to close is attached to emulator devices then please disconnect it first then close it. I also faced this problem and this approach helped me much.



来源:https://stackoverflow.com/questions/62274740/after-updating-android-studio-from-3-6-to-4-0-close-project-not-works

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