开发者

Eclipse - Force Refresh of IDs

I'm using eclipse for Android development, and the editor always seems to take a while to actually upd开发者_如何学Goate 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?


  1. You may be running into the delay where automatic building meets unsaved files. Try manually saving the file after the change.
  2. If you have the generated file, R.java, open in an editor then it may not update.
  3. Alternately, you can blow everything away with a Project/Clean.
  4. Alternately, you could manually build.
  5. Highlighting the project and hitting "F5" may work for you.

Let us know what, if anything, worked for you.


Yes, you can do a Project -> Clean.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜