Doge
Doge

Reputation: 6543

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.

Upvotes: 35

Views: 37272

Answers (9)

Subhan Ali
Subhan Ali

Reputation: 1430

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

Upvotes: 1

kolosy
kolosy

Reputation: 3099

(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.

Upvotes: 1

theblang
theblang

Reputation: 10425

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.

Upvotes: 0

ss1907
ss1907

Reputation: 158

  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

Upvotes: 14

Uwe Post
Uwe Post

Reputation: 515

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.

Upvotes: 0

Craig T
Craig T

Reputation: 2752

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.

Upvotes: 0

Doge
Doge

Reputation: 6543

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.

Upvotes: 20

Karan Nagpal
Karan Nagpal

Reputation: 541

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.

Upvotes: 1

Karan Nagpal
Karan Nagpal

Reputation: 541

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.

Upvotes: 7

Related Questions