Android Drawables not updating

I have this problem that has been driving me crazy lately ...

I have an application with a full resource (backgrounds, images, etc.). After testing on a larger device, I found that some of the drawings were too small and became stretched. Then I decided to make them better, and then replace them with a folder with the ability to transfer. After starting the application on the device, I noticed that the drawings did not update, leaving the application with the old ones. I tried to uninstall the application, no difference ... after I installed it again, the application comes with old things, not a new one.

What is going on ?: |

+4
source share
4 answers

Try Project / Clean and deploy your app. If the problem persists, another possibility is that you did not split / drawable into / drawable-hdpi, / drawable-ldpi, / drawable-mdpi, / drawable-xhdpi.

+6
source

Try updating the folder with the ability to copy (right-click on it → update). If this does not help, temporarily set the link to another image, launch the application. Then exit it and return the link to the correct image.

+1
source

None of these solutions worked for me.

It worked right after I renamed the files and changed the links to the code drawings.

+1
source

If Clean Project doesn't work for you, try File > Invalidate Caches / Restart - this worked for me.

0
source

Source: https://habr.com/ru/post/1434101/


All Articles