0

So I mistakenly deleted the entire Drawable folder, I immediately pressed undo and the folder is now back in its original place. However, it is not recognised anymore in code.

What can I do? I am desperate right now.

I tried rebuilding the project.

enter image description here

  • Can you explain more in detail? Also, Add an image of the error that is showing. – M DEV Jun 04 '23 at 10:26
  • Yes, so I deleted the entire Drawable folder, which was found under app/src/main/res/drawable path. I pressed undo right after, so the folder its back in its original place. I am not getting and error, but my resources are not visible in the project anymore. Here, for example, I have the lock.png file in the drawable folder, but it is not recognised in the code. I thought maybe I can do something for the drawable folder to be recognized again. – Daiana Avram Jun 05 '23 at 19:38
  • try rebuilding the project – JustSightseeing Jun 05 '23 at 19:50
  • I did but it still doesnt take any drawable resources. I tried moving them to another folder and reference that folder but I get this error: /layout/activity_register.xml:43: error: '@drawable3/search' is incompatible with attribute drawableTop (attr) reference|color. error: failed linking file resources. – Daiana Avram Jun 05 '23 at 19:53
  • Did you try the solutions posted [here](https://stackoverflow.com/questions/48549587/failed-linking-file-resources) ? – JustSightseeing Jun 05 '23 at 20:08

0 Answers0