I have started a new application project in android and I am getting this strange error on R file.I have done many projects but this is for the first time that an R error is coming as R file is generated automatically.There is no error in my xml or class files as I have just started the project.This is what its showing-:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
R cannot be resolved to a variable.
I tried creating the R class but it shows up in src folder and not in gen folder.Please help me out here anyone.Thanks in advance.