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
Some quick solutions to your problem might be,
R.java
class that is automatically generated when you build.R
is a generated class. If you are using the Android Development Tools (ADT) it is generated whenever the project is built. You may have 'Build Automatically' turned off. Turn it on and build your project.import android.R;