title: error "main cannot be resolved or is not a field "
body: <p>"MAIN CANNOT RESOLOVED OR NOT IN A FIELD" 
  It gives error in mainactivity at setcontentview "main cannot be resolved or not in field.<br>
  This is my code plz help me as i got tired to find a way out plz reomove this error
      "this is my mainactivity"</p>
  
  <pre><code>package com.exampl.goglemaps;
  
  import android.os.Bundle;
  import com.exampl.goglemaps.R;
  import com.google.android.maps.MapActivity;
  import com.google.android.maps.MapView;
  
  public class MainActivity extends MapActivity {
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
  
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          //fetch the map view from the layout
          MapView mapView = (MapView) findViewById(R.id.mapview);
  
          //make available zoom controls
          mapView.setBuiltInZoomControls(true);
      }
  
      @Override
      protected boolean isRouteDisplayed() {
  
          return false;
  
      }
  }
  </code></pre>
  
  <p>my manfiestfile</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.exampl.goglemaps"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk android:minSdkVersion="14" /&gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
  
      &lt;application
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name" &gt;
          &lt;activity
              android:name=".MainActivity"
              android:label="@string/app_name" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
        &lt;uses-library android:name="com.google.android.maps" /&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>and that is my xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
  
         &lt;com.google.android.maps.MapView
          android:id="@+id/mapview"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:apiKey="Your Google Maps API key"
          android:clickable="true" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>this call a error in mainactivity in  setContentView(R.layout.main); saying that "main cannot not be resoloved or in not a field"</strong> i have searched almost every foroum but failed to get through this, plz help me out to solve this error.</p>
  
  <h1>Heading</h1>
  
  <p>THANKs in Advance</p>