简体   繁体   中英

How to delete folder from drawable folder of resource?

I created by mistake a folder inside /app/src/main/res/drawable-v21/

Now it's giving me this error Error: The file name must end with .xml or .png , but I'm not seeing that folder inside the directory.

How can i delete that folder?

First try to undo your change by pressing ctrl+z or ctrl+alt+z

or Open Local History view by Right click on directory and select Local History. Revert your change to some time back.

If you are using Android Studio , Sometimes we can't see some files or folders like your problem.

So, you could go to your app/src/main/res from where your project currently saved and then you could delete it.

Or, with your solution, clicking on Show in explorer or even when you are using Android Studio with collapsed project like below image:

在此处输入图片说明

You should be able to see all the project with any files or project with that Project and not Android . As you can see, i have values-v21 but i can't see that in my Android collapsed option.

That's pretty much it.

[Right click on the drawable folder and select Show in Explorer ]

[Here you can delete the error causing folders ][2]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM