title: Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 6: TypedValue{t=0x2/d=0x101009b a=1}
body: <p>I'm seeing the follow exception,</p>
  
  <p>It only occurs when the Android SDK api level is 26, but it's ok in lower version.</p>
  
  <pre><code>Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute
      at index 6: TypedValue{t=0x2/d=0x101009b a=1}
      at android.content.res.TypedArray.getColorStateList(TypedArray.java:538)
      at android.widget.TextView.&lt;init&gt;(TextView.java:904)
      at android.widget.TextView.&lt;init&gt;(TextView.java:818)
      at android.widget.TextView.&lt;init&gt;(TextView.java:814)
  </code></pre>
  
  <p>The xml file is</p>
  
  <pre><code>&lt;TextView
          android:id="@+id/tv_app_title"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerInParent="true"
          android:text="@string/app_name"
          android:textColor="@color/black"
          android:textSize="@dimen/large" /&gt;
  </code></pre>
  
  <p>The Activity style is</p>
  
  <pre><code>&lt;style name="HostCompatTheme" parent="Theme.AppCompat.Light.NoActionBar"&gt;
      &lt;item name="android:elevation"&gt;0dp&lt;/item&gt;
      &lt;item name="android:buttonStyle"&gt;@style/NoShadowButton&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>activity which uses this extends Activity, not ActionBarActivity. Any ideas why is it generating an error?</p>