I'm using eclipse for Android development, and the editor always seems to take a while to actually update and recognize if I change an ID in a layout, then try to use it in a class with R.id.someId. Is there a way to force a refresh?
A:
- You may be running into the delay where automatic building meets unsaved files. Try manually saving the file after the change.
- If you have the generated file, R.java, open in an editor then it may not update.
- Alternately, you can blow everything away with a Project/Clean.
- Alternately, you could manually build.
- Highlighting the project and hitting "F5" may work for you.
Let us know what, if anything, worked for you.
Charles Merriam
2010-06-07 19:01:53
Looks like a bug in strings.xml was causing the auto-build to be aborted and use old references. I'm used to working in Visual Studio, which is a tad different. Thanks for the help.
Echilon
2010-06-07 19:31:46