Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android studio new project missing folders

I have created a new project using the latest version of Android Studio (0.2.2), this is a fresh install of studio. When I am in the project explorer view, it fails to show me any folders for my project. I should see a root project folder, and within it the .idea, gradle, and module folders, but they are not showing.

Here is what I expect to see (taken from the sample project created on first boot):

enter image description here

But here is what I see immediately after the project's creation:

enter image description here

I cannot figure out how to expose my project's folders! I do not want to develop without the project explorer, it's simply too much of a hassle. Did I create the project incorrectly, or am I missing some not-so-obvious setting somewhere?

Thanks.

like image 299
Doge Avatar asked Jul 31 '13 04:07

Doge


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!

How do I create a folder in android project?

Step 1: To create an asset folder in Android studio open your project in Android mode first as shown in the below image. Step 2: Go to the app > right-click > New > Folder > Asset Folder and create the asset folder. Step 3: Android Studio will open a dialog box. Keep all the settings default.

Where are my Android Studio projects saved?

Storage of the Android project. 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.


3 Answers

The problem here is that I assumed android studio would create a module for the application. I assumed this because it asked me at the beginning for app name, module name, package, sdk info etc.

This assumption turned out to be false. You must create your first module manually through File > Project Structure. After that is done, the project explorer shows the files.

like image 53
Doge Avatar answered Oct 04 '22 18:10

Doge


  1. File -> Project Structure -> Modules
  2. Add Button (Green plus button) click -> New Module Select
  3. New Module window -> "Content root" change path button click to select "Project root file path"
  4. Apply to change save and "OK" button exit.

enter image description here

like image 14
ss1907 Avatar answered Oct 04 '22 16:10

ss1907


In the project Explorer there is a drop down menu where you have selected project, now change it to project files.

I hope this will solve your problem. reply if it didn't.

like image 7
Karan Nagpal Avatar answered Oct 04 '22 18:10

Karan Nagpal