Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.enter image description here

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)
    ...
like image 900
DysaniazzZ Avatar asked Jun 09 '20 03:06

DysaniazzZ


People also ask

How do I close a project in Android Studio?

How to Close project in Android Studio: Step 1: Click on File then Click on Close Project and your project will be closed.

Why is Android Studio not working?

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 Android Studio not opening?

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.

How do I clean my android project?

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.


Video Answer


1 Answers

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.

like image 154
AyTee Avatar answered Oct 20 '22 09:10

AyTee