Magic behind R.java file

Posted by LambergaR on Stack Overflow See other posts from Stack Overflow or by LambergaR
Published on 2010-01-12T11:10:54Z Indexed on 2010/05/08 14:18 UTC
Read the original article Hit count: 397

Filed under:
|
|

Hi!

Recently I have been having quite some problems with R.java file. Now I have decided to do a backup and delete the file to see what happens.

Nothing happened, so I created an empty R.java file and hopped for the best. Now Eclipse seems to figure out that the file was tempered with and even issues a warning:

R.java was modified manually! Reverting to generated version!

And that's all there is. I tried building it manually but got no results.

So, I have two questions: 1. what should I do to force Eclipse to generate the file 2. what is happening here? How is the file created, where is the code that is generating the file?

I would appreciate any help. As usual the problem occurred just a few days before the deadline :)

© Stack Overflow or respective owner

Related posts about android

Related posts about eclipse