title: R error at the start of Android project
body: <p>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-:</p>
  
  <pre><code>    public void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.main);
          }
  R cannot be resolved to a variable. 
  </code></pre>
  
  <p>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.</p>