Elliott Walsh
Elliott Walsh

Reputation: 1

R.java file disappears

Every time I try to add a button, add an image view, edit a button, pretty much do anything, my R.java disappears and the only way I can fix the problem is by starting again

I have read evey single post on this and tried every single suggestion but nothing seems to work. Can someone please help me as this is insane?. I'm sure there must be something I need to change as I'm pretty sure this can't be happening to all android developers every 10 minutes.

Upvotes: 0

Views: 82

Answers (2)

Luser_k
Luser_k

Reputation: 534

Are you using your build over "Build automatically" ? Any changes of your code, after autosave your project is build again and the R-File is generated.

Upvotes: 0

Birdy
Birdy

Reputation: 355

For me the best trick is to clean the project:

At Eclipse: Project -> Clean -> Select project and than OK.

Upvotes: 2

Related Questions