32

I am unable to see the folders that are physically existing, this is the case.

enter image description here

But in actual fact I have other folders as welll enter image description here

So what can I do?

JackyBoi
  • 2,695
  • 12
  • 42
  • 74

5 Answers5

73

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.

Android Studio Directory

Joel
  • 14,861
  • 3
  • 27
  • 31
  • 6
    Yeah, this is the first impulse. But what do you do when you ALREADY have "Project Files" selected, yet folders are STILL not displayed? Android Studio 2.1.2. – SMBiggs Jun 22 '16 at 03:58
  • @ScottBiggs I have the same issue. All is shows is external libraries. – Sethmr Mar 03 '17 at 16:59
  • @Sethmr: it seems that Android Studio simply doesn't show empty folders. Sigh. – SMBiggs Mar 10 '17 at 21:00
  • I figured out what the problem was, but no one on here lead me in the right direction. – Sethmr Mar 10 '17 at 21:04
  • As @ScottBiggs says, with some AS versions (2.3) changing to Project, or ProjectFiles does not help. But leaving the option on "Project" and restarting AS 2.3 helped in my case :) HTH 2U2 – Sold Out Mar 09 '18 at 08:13
  • Why on earth are some folders not showing in the regular tree view on the left? – Sventies Nov 15 '18 at 14:12
13

go to View menu then click tool window then after click on project

view->toolwindow->project

it worked for me

gaurav gupta
  • 513
  • 1
  • 6
  • 13
13

I tried the all the approaches mentioned above but can't fix rather than fix it by a hardcore approach -

Step 1. Close your Android studio.

Step 2. Delete .gradle and .idea folder from your project directory.

Step 3. Open your project and you will see the files again.

Gk Mohammad Emon
  • 6,084
  • 3
  • 42
  • 42
7

for me doing the following works:

from menu go to: View--->tool windows ---> Project

then click the little gears icon (settings) you will see an option to change the empty middle packages. it looks like this:

enter image description here

disable "Hide Empty Middle Packages" under the Project View settings dropdown and then it should make everything show up.

j2emanue
  • 60,549
  • 65
  • 286
  • 456
0

If anyone ever does what I did maybe this will help:

Android Studio does not like it when module names begin with a number. I was learning from some tutorials and named the first module "1-name" and the next one "2-name". Setup was fine and it ran, but only the "Gradle" Scripts entry would show in the navigation window in "Android" mode.

Daniel Wilson
  • 18,838
  • 12
  • 85
  • 135