title: java.lang.UnsupportedOperationException: Can't convert to color: type=0x1
body: <p>I've been following throught the myfirstapp guide on Android developers training but I've come across a problem where <a href="http://developer.android.com/training/basics/actionbar/styling.html#" rel="noreferrer">they do not properly explain how to define colors.</a></p>
  
  <p>They mention that to create a custom theme, you can declare your text colors as such:</p>
  
  <p>themes.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;!-- the theme applied to the application or activity --&gt;
      &lt;style name="CustomActionBarTheme"
          parent="@android:style/Theme.Holo.Light.DarkActionBar"&gt;
          &lt;item name="android:actionBarStyle"&gt;@style/MyActionBar&lt;/item&gt;
          &lt;item name="android:textColor"&gt;@style/MyActionBarTitleText&lt;/item&gt;
          &lt;item name="android:actionBarTabTextStyle"&gt;@style/MyActionBarTabText&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;!-- ActionBar styles --&gt;
      &lt;style name="MyActionBar"
          parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse"&gt;
          &lt;item name="android:background"&gt;@drawable/actionbar_background&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;!-- ActionBar title text --&gt;
      &lt;style name="MyActionBarTitleText"
          parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title"&gt;
          &lt;item name="android:textColor"&gt;@color/actionbar_text&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;!-- ActionBar tabs text styles --&gt;
      &lt;style name="MyActionBarTabText"
          parent="@android:style/Widget.Holo.ActionBar.TabText"&gt;
          &lt;item name="android:textColor"&gt;@color/actionbar_text&lt;/item&gt;
      &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>They do not mention how to specify <code>@color/actionbar_text</code>, but common sense (and some googling) indicates that a colors.xml file is required in the values package:</p>
  
  <p>colors.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;color name="actionbar_text"&gt;#ff355689&lt;/color&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>However, when trying to run the app, it gives an error:</p>
  
  <pre><code>Process: com.example.myfirstapp, PID: 25997
  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myfirstapp/com.example.myfirstapp.MainActivity}: java.lang.UnsupportedOperationException: Can't convert to color: type=0x1
  </code></pre>
  
  <p>If I remove the line from colors.xml, it errors when it can't find the color reference. Im relatively certain my code is correct, can anyone see any errors?</p>
  
  <p><img src="https://i.stack.imgur.com/1nxyV.png" alt="android studio showing error"></p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I just wanted to note that I am actually using slightly different syntax for the themes.xml file as the tutorial ones dont compile. The tutorial uses <code>@style/Widget.Holo.ActionBar.TabText</code>, which I found was actually a property of android, so I needed to use <code>@android:style/Widget.Holo.ActionBar.TabText</code> instead.</p>