35

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.

Doge
  • 6,553
  • 5
  • 24
  • 25
  • 1
    Open your android studio while internet connection is there, it will download some files...let it download those files itself. Once those files are downloaded, you can use android studio offline. – nidhi Jul 31 '13 at 09:55
  • 2
    possible duplicate of [Android Studio "Project Structure" not coming properly](http://stackoverflow.com/questions/16727505/android-studio-project-structure-not-coming-properly) – Chintan Rathod Sep 15 '15 at 05:43

9 Answers9

20

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.

Doge
  • 6,553
  • 5
  • 24
  • 25
  • 1
    Then why does the src file exist in the subfolder with the project name when creating the project? – nhaarman Oct 12 '13 at 19:46
  • 2
    I assume because this is a bug. When I create a new project on another PC of mine, the first module is already created for me in Studio, I don't need to add it manually. – Doge Oct 17 '13 at 19:38
  • Like Niek said, I am curious why a module isn't being created automatically. I have tried on both my home and work computers. The files are definitely there on the file system. – theblang Oct 23 '13 at 16:30
  • I fixed the issue without manually creating a module. See my answer. – theblang Oct 23 '13 at 19:52
14
  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

ss1907
  • 158
  • 7
7

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.

Karan Nagpal
  • 521
  • 1
  • 8
  • 19
  • Project explorer says "Nothing to show" when I have project files selected – Doge Aug 01 '13 at 02:16
  • tell me one thing, you created new project or imported existing project. because if you have imported the existing project then probably your project isn't imported correctly. and if you are importing existing project which was created in eclipse then you have to follow instructions as given on this link - [link] http://developer.android.com/sdk/installing/migrate.html – Karan Nagpal Aug 01 '13 at 05:23
1

You have created a new gradle project not a new android project. Update your android studio tools to 0.2.3 - Go to Help menu - select check for update. then Update your android sdk tools, android support repository, android support library and android build tools using android sdk manager.

enter image description here And update some configuration in project structure. Go to File menu->project structure -> in projects tab select Android SDK as default sdk and in SDKs tab set correct path to updated android sdk.

Now restart android studio and try to create a new project and it should work fine.

Karan Nagpal
  • 521
  • 1
  • 8
  • 19
1

(Noted for posterity) I had a similar issue come up recently, when importing an Eclipse android project. The issue was that the source folder wasn't added as such. I had to manually go into Project Structure -> Modules -> Sources and make sure that the "src" folder wasn't excluded and was marked a source folder.

kolosy
  • 3,029
  • 3
  • 29
  • 48
1

Although this question is asked years ago. But now following simple solution worked for me.

Clicking 'Sync Project With Gradle files' makes all directories visible.

enter image description here

Subhan Ali
  • 1,370
  • 13
  • 17
0

I had this exact same issue, there are some problem if you upgrade from 0.1.9 version to 0.2.0 in Windows.

Android Studio 0.2.0 Release

The solution (which worked for me) was to completely uninstall Android Studio and reinstall the 0.2.0 version.

Craig T
  • 2,761
  • 5
  • 25
  • 33
0

I had the same problem today. Additionally, the IDE posted an "Assertion Error" into its event log.

Downloading and reinstalling the preview version, then applying the patch to 0.2.6 worked for me.

Uwe Post
  • 518
  • 4
  • 10
0

Change the SDK to a level that you have installed in the SDK manager. The SDK manager can be accessed from Tools -> Android -> SDK Manager. For me, Android Studio was packaged with API Level 17 but the new project wizard tried to target API Level 18.

theblang
  • 10,215
  • 9
  • 69
  • 120