title: appcompat_v7 errors in eclipse
body: <p>i'm new to android programming .i have just installed eclipse and sdk and adt plugin .evereting works fine when i import other project. but when i create a new project it give me a lot of errors.</p>
  
  <p>here are the errors:</p>
  
  <pre><code>*Description    Resource    Path    Location    Type
  Unknown error: java.lang.NullPointerException   appcompat_v7        Unknown Android Packaging Problem
  
  *ActionBarActivity cannot be resolved to a type MainActivity.java   /Testsaid/src/com/example/testsaid  line 32 Java Problem
  
  *The method getMenuInflater() is undefined for the type MainActivity    MainActivity.java   /Testsaid/src/com/example/testsaid  line 19 Java Problem
  
  *R cannot be resolved to a variable MainActivity.java   /Testsaid/src/com/example/testsaid  line 19 Java Problem
  
  *The method onOptionsItemSelected(MenuItem) of type MainActivity must override or implement a supertype method  MainActivity.java   /Testsaid/src/com/example/testsaid  line 24 Java Problem
  error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml  /Testsaid/res/values    line 7  Android AAPT Problem
  *R cannot be resolved to a variable MainActivity.java   /Testsaid/src/com/example/testsaid  line 29 Java Problem
  *The method onCreateOptionsMenu(Menu) of type MainActivity must override or implement a supertype method    MainActivity.java   /Testsaid/src/com/example/testsaid  line 17 Java Problem
  error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml  /Testsaid/res/values-v11    line 7  Android AAPT Problem
  *R cannot be resolved to a variable MainActivity.java   /Testsaid/src/com/example/testsaid  line 13 Java Problem
  *ActionBarActivity cannot be resolved to a type MainActivity.java   /Testsaid/src/com/example/testsaid  line 12 Java Problem
  *The method onCreate(Bundle) of type MainActivity must override or implement a supertype method MainActivity.java   /Testsaid/src/com/example/testsaid  line 11 Java Problem
  *ActionBarActivity cannot be resolved to a type MainActivity.java   /Testsaid/src/com/example/testsaid  line 8  Java Problem
  *The import android.support.v7 cannot be resolved   MainActivity.java   /Testsaid/src/com/example/testsaid  line 3  Java Problem
  *error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.  styles.xml  /Testsaid/res/values-v14    line 8  Android AAPT Problem
  </code></pre>
  
  <p>here are the code of main activity:</p>
  
  <pre><code>package com.example.saidg;
  
  import android.support.v7.app.ActionBarActivity;
  import android.os.Bundle;
  import android.view.Menu;
  import android.view.MenuItem;
  
  public class MainActivity extends ActionBarActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.main, menu);
          return true;
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          // Handle action bar item clicks here. The action bar will
          // automatically handle clicks on the Home/Up button, so long
          // as you specify a parent activity in AndroidManifest.xml.
          int id = item.getItemId();
          if (id == R.id.action_settings) {
              return true;
          }
          return super.onOptionsItemSelected(item);
      }
  }
  </code></pre>
  
  <p>i noticed that most of them come from values folders. they are marked with a little red cross</p>
  
  <p>i also noticed that a new project has been created named appcompat. i saw other posts about this problem  but they didn't help. the target sdk is already set to android 21 in project properties file.</p>
  
  <p>thanks</p>