Peter Peter - 1 year ago 83
Android Question

Android code won't generate R.Java after cleaning

Recently my android program won't generate the auto-generated file under gen in my android project. I tried doing Project->Clean and it still doesn't work. I also restarted eclipse multiple times.

Any Ideas?

Answer Source

Make sure you don't have any errors* under your Problems tab in Eclipse. Try to use Fix Project Properties under Android Tools when your right click on your project.

If that doesn't fix your problem, try modifying your AndroidManifest.xml (just add a space and save). I've heard that will force the to rebuild.

* except for errors that says R cannot be resolved to a variable - these errors will go away once you correct other errors and force to rebuild.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download