I had R.java file in my android application. But I don\'t know, It is delete some how. To create it again I clean my project and also Rebuild my project by clicking on Build
Move your cursor to a reference to any button/layout/string/whatever-coming-from-R, delete the last character, and hit ctrl+space. Eclipse will try to codehint you, automatically importing the correct R.java.