Android Studio 1.2.2 - New directory can't be created or showed or used

1.6k views Asked by At

what I am trying to do is to create a new directory (styles) in res directory so that I can store all my styles there and can manage my codes easily from there. I have done it in Eclipse many times in the time of android development.

So, what I am doing is given in the pictures -

Step 1 -

Step 1

Step 2-

Step 2

Step 3-

Step 3

Step 4-

Step 4

But the problem is the the new moved directory is created (it is seen from the top navigator - red marked), but it is not shown in the left navigator and the file shows error.

If I try to add a new directory, it also not showing the file directory in the left. So, I can't create a new directory in any way in res directory.

Is there any way to create a new directory what can be used in codes for managing codes in res directory or it is not supported in Android Studio?

Can anyone help me please?

2

There are 2 answers

6
Bidhan On

At the left pane, you have a dropdown near the top in which you've currently selected Android. Click on it and select Project. Then you can see the entire directory structure with all your folders. Navigate to your res folder and create new directory like follows. Your project > app > src > main > res > Right Click > New > Android Resource Directory

2
Saraschandraa On

@Abrar Jahin, The answer by Bidhan A is the correct one. All you have to do for creating a new directory view from android to Project. Below the toolbar like CustomListView->App->.... You can see a tab saying Android click on it. There will be many options like Project, Packages, etc. Select Project, now you will get a entire structure as in Eclipse, Now create a folder, that should see you through.