I upgraded to Ubuntu 11.10, Eclipse 3.7.0, ADT 14.0.0.
When I replaced the image resource in the / res / drawable -nodpi directory on the desktop or in the audio resource in the / res / raw directory, both the recompiled program and Project Explorer use some previously cached version.
I tried the following: none of them worked:
right-click on filename in project explorer: Refresh right-click on /drawable-nodpi dir in pe: Refresh right-click on /res dir in pe: Refresh right-click on Project in pe: Refresh Project -> Clean... Project -> check Build Automatically, Run->Run
The program automatically recompiles the new source code, but reuses its own cached resources. This is with an existing project that worked under Ubuntu 10.
As a workaround, I renamed the file to disk; Remote file in the Eclipse Project Explorer; restored the file name to disk; and then dragged the file from the desktop to the / res / drawable -nodpi folder in Project Explorer. Eclipse returned with a popup asking if I want to copy or link the file to Eclipse. I chose Link . Finally, a new version of the imported resources has appeared.
Update. After the source code that used these images was changed elsewhere, it ceases to recompile, saying that R.drawable.mypicname no longer refers to anything. Thus, related resources do not seem reliable in the end. The final solution is to manually copy the file to your desktop and paste it into the Eclipse ProjEx / res / drawable-nodpi directory. This was recompiled without changing the source code and ran on the device.
Both Clean and Refresh do not work correctly - this is a rather unexpected behavior. Why is he doing this? What am I doing wrong? How to set up the Eclipse environment so that the latest version is used when changing the file on the disk? Or at least allows me to be updated? Thanks.
source share