Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - running a build collapses all the folders in the Project browser?

I've been developing on Eclipse for years and have just started a new project on Android Studio.

I'm noticing that every time I run a build, Android Studio collapses ALL the folders in the Project Files browser, such that they need to be re-expanded to get back to where I want them.

This is what I'm left with:

-> app

-> MyApplicationName

For me, this is incredibly annoying and unnecessarily disruptive to the development process. Yet, I don't see a solution online, so I'm suspecting I'm missing something obvious...

Is there a way to prevent Studio from auto-collapsing the Project Files browser?

like image 832
Alchete Avatar asked Nov 25 '14 14:11

Alchete


People also ask

How do I show all folders in Android Studio?

Above your the file directory view in Android Studio is a drop down which currently is most likely set to Android. Change it to Project and you should be able to see all your files. Lifesaver!

Is it safe to delete build folder Android studio?

Yes, you can delete the Build folder. If you are running Windows and you are not able to delete the folder, make sure you are the owner of the folder. Go to folder properties/security and check if your name is listed as the owner.

Where is the project file in Android Studio?

Android Studio stores the projects by default in the home folder of the user under AndroidStudioProjects. The main directory contains configuration files for Android Studio and the Gradle build files. The application relevant files are contained in the app folder.


1 Answers

I think you want to use the "Project" view, and not the "Project Files" view. I had this problem when I first switched from Eclipse to Android Studio and found it was because I'd set the file browser (top left) to look at Project files and not Project. The normal Project view does much the same thing and doesn't collapse when running tests.

like image 157
MikeH Avatar answered Sep 26 '22 02:09

MikeH