muad-dweeb
muad-dweeb

Reputation: 1135

Why does AndroidStudio tell me that this directory already exists but won't show it in the Project view?

enter image description here

I'd like to create a directory where I can store some XMLs, but AndroidStudio won't show me the directory I've created. What is going on here?

This is Step 3 in this tutorial here.

Upvotes: 0

Views: 1041

Answers (3)

Syed Umair
Syed Umair

Reputation: 1602

Right-click on res folder and click Show in Explorer. Then if the animation folder exists delete it and then try again. Folder name should be anim. Android Studio will not recognize any invalid name.

Upvotes: 0

muad-dweeb
muad-dweeb

Reputation: 1135

Creating a Resource Directory named "animation" was the problem, apparently. Creating a directory named "anim", as the tutorial I was following suggested, works.

Upvotes: 1

Priyanka
Priyanka

Reputation: 1875

Just try to Invalidate cache and restart android studio. You will able to see the folder in the res folder.

Upvotes: 0

Related Questions