title: ANDROID : Failed to resolve attribute at index 13
body: <blockquote>
    <p>---->> java.lang.RuntimeException: Unable to start activity ComponentInfo{sharedpreferenceex.app.htc.com.listview_lv/sharedpreferenceex.app.htc.com.listview_lv.MyGrid}: android.view.InflateException: Binary XML file line #44: Error inflating class com.android.internal.widget.ActionBarContextView</p>
    
    <p>---->>Caused by: android.view.InflateException: Binary XML file line #44: Error inflating class com.android.internal.widget.ActionBarContextView</p>
    
    <p>---->>Caused by: java.lang.reflect.InvocationTargetException</p>
    
    <p>---->>Caused by: java.lang.RuntimeException: Failed to resolve attribute at index 13</p>
  </blockquote>
  
  <p>I am facing with the above three exceptions.I am just trying to run a app to display a text view in an activity.These exceptions arrives in onCreate method of the activity itself.</p>
  
  <p>I have also looked into all the stackoverflow anwers but could not figure out the problem.</p>
  
  <p>My Manifest.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
  
      &lt;activity
          android:name=".MyGrid"
          android:label="@string/title_activity_my_grid" &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;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>activity xml</p>
  
  <pre><code> &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
  android:layout_height="match_parent" &gt;
  
  
  &lt;TextView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="New Text"
      android:textSize="25dp"
      android:id="@+id/tv_example" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>Activity code</p>
  
  <pre><code>public class MyGrid extends Activity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_my_grid);
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.menu_my_grid, 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();
  
      //noinspection SimplifiableIfStatement
      if (id == R.id.action_settings) {
          return true;
      }
  
      return super.onOptionsItemSelected(item);
  }
  </code></pre>
  
  <p>}</p>