I downloaded few source codes from Google source codes.
I executed them on Eclipse but R.java file is not created and therefore I got many errors saying
R.java
For future readers, restart adb then clean.