views:

679

answers:

2

I've found out that my R.java is never updated, so it doesn't contain info about my new resources, so I decided to delete it and thought that Eclipse will generate a new one. But that didn't happen and I don't have R.java now. How can I generate one? I'm using Win7, if that changes anything.

A: 

This site suggests:

if you run a clean on the project it should regenerate all the generated java files, namely R.

...and...

In Eclipse, under the Project menu, is an option build automatically. That would help you build the R.java file everytime modifications are made. The Clean... option is also there under Project.

This site suggests another solution.

It seems to be a common issue with many different answers readily available through google :)

aioobe
Thank you aioobe, the thing about layouts with errors was right, everything works now!
popoffka
A: 

I'm running into this issue after everything was working great for over a month. The /gen files are not being created. I've tried opening / closing eclipse, cleaning the project, toggling "Build automatically", and googling all over the place. I'm still running into this problem. Anyone have any more ideas?

duskstriker
So apparently something changed the permissions of my .svn folders inside the bin directory. Changing these permissions let Eclipse clean them properly. Grrrr..
duskstriker