Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse - Android drawable image resources not refreshing

I'm using Eclipse (4.2.1 Juno) on Windows 7 for my Android 2.2 project. I have several PNG resources in my drawable folders, and I'm finding that if I edit my PNG files (Paint/Photoshop etc) Eclipse doesn't recognise the file has changed and the ADT graphical layout designer still displays the old version of the image. I've tried refreshing the project folders list, tried doing a Project->Clean but neither has any affect. The only way I've found of getting Eclipse to recognise the new image version is to exit completely and restart which is a pain.

Is there some setting I can use to tell Eclipse not to 'cache' the images and always read the latest version off disk?

like image 265
Jonathan Wareham Avatar asked Apr 16 '26 05:04

Jonathan Wareham


1 Answers

Try in Eclipse Project -> Clean then select your project. This will delete your R.java file and will generate new one.

like image 187
hakki Avatar answered Apr 18 '26 18:04

hakki



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!