title: R cannot be resolved - Android error
body: <p>I just downloaded and installed the new Android SDK. I wanted to create a simple application to test drive it.</p>
  
  <p>The wizard created this code:</p>
  
  <pre><code>package eu.mauriziopz.gps;
  
  import android.app.Activity;
  import android.os.Bundle;
  
  public class ggps extends Activity {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
      }
  }
  </code></pre>
  
  <p>but <a href="http://en.wikipedia.org/wiki/Eclipse_%28software%29" rel="noreferrer">Eclipse</a> gives me the error</p>
  
  <blockquote>
    <p>R cannot be resolved</p>
  </blockquote>
  
  <p>on line</p>
  
  <pre><code>setContentView(R.layout.main);
  </code></pre>
  
  <p>Why?</p>
  
  <p>PS: I do have an XML file named <code>main.xml</code> under <code>res/layout/</code>.</p>