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)
...
How to Close project in Android Studio: Step 1: Click on File then Click on Close Project and your project will be closed.
If Studio doesn't start after an upgrade, the problem may be due to an invalid Android Studio configuration imported from a previous version of Android Studio or an incompatible plugin.
How do I fix launching Studio error? Open Start menu > computer > System Properties > Advanced System Properties. In the Advanced tab > Environment Variables, add a new system variable JAVA_HOME that points to your JDK folder, for example, C:\Program Files\Java\jdk1. 7.0_21.
Clear your project directory Obviously, try to clean your project from android studio : “Build -> Clean Project”. This will clear your build folders. Clear the cache of Android Studio using “File -> Invalidate Caches / Restart” choose “Invalidate and restart option” and close Android Studio.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With