Eclipse - YouTube drawing assets not updating

I am using Eclipse (4.2.1 Juno) on Windows 7 for my Android 2.2 project. I have several PNG resources in my accessible folders and I found that if I edit my PNG files (Paint / Photoshop, etc.), Eclipse does not recognize that the file has been modified, and the ADT graphic designer still displays the old version of the image. I tried updating the project folder list, tried to do Project-> Clean but none of them had any effect. The only way to find Eclipse to recognize the new version of the image is to quit and restart completely, which is a pain.

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

+3


source to share


5 answers


This is a common Eclipse issue that does not recognize external changes to files in the workspace. The only thing I figured out to fix this issue a bit (besides refreshing like crazy) is the update settings in external tool settings. That is, if you run Ant construct, for example, you can tell eclipse to update the workspace or certain resources afterwards. I don't even know how to do it.



+1


source


Try it in Eclipse Project -> Clean

then select your project. This will delete your file R.java

and create a new one.



+5


source


you should try to save all unsaved resources and files after adding images and then try again. Clear both options by clearing one working project and clearing all projects.

0


source


I don't know about auto-tuning, but I found a relatively simple manual action that seems to be effective. I had the same problems as you; now the following procedure works consistently for me, with Eclipse Juno 4.2.1.

Click on the "res" folder to select it, then press F5 to update. Also make sure your PNG file timestamps have been affected.

0


source


Resources cached in bin \ res folder.

  • Create a script that deletes the bin \ res folder with all content.

  • Add this script as an external tool to the list of constructors.

  • Set position in builder list - after CDT creation. Second position in the list. If there is no CDT creator, install it first.

  • Enjoy.

0


source







All Articles