How to force Eclipse to rebuild generated resource class (R) in Android project ?

by admin on Monday, October 24, 2011 10:27 PM

If you found that your R (resource) generated class in Android project have errors you will want to force Eclipse to rebuild that class. To force Eclipse to rebuild generated resource class (R), you just need to click on Project->Clean menu, and then select which projects you want to clean.

In my case rebuilding generated class did not helped because there was error in my XML layout file and class again had the same error. So if you ever have error in your R (resource) generated class, it is better to first check your error log and find where in the layout or resource files you have error. Usual error is wrongly named resource id of control. After you fix that error and save changes error in R class will usually disappear.



izvornikod.com blog
android
class
Eclipse
force
generated
R
rebuild
resource

If you found this useful,
you can buy me a coffe :)

By me a coffe through PayPal :)

Check out list of cities where you can pay parking with Parking SMS Scheduler

Please feel free to leave comments about cities list, parking zones or Parking SMS Scheduler