简体   繁体   中英

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.

For me the best trick is to clean the project:

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM