Problem following the Android TabLayout tutorial
<p>Working through the Android <a href="http://developer.android.com/resources/tutorials/views/hello-tabwidget.html" rel="nofollow">TabLayout tutorial</a> I ran into a problem.</p>

<p>I think the tutorial is incomplete.</p>

<p>When I add </p>

<pre><code>spec = tabHost.newTabSpec("artists").setIndicator("Artists",
                          res.getDrawable(R.drawable.ic_tab_artists)) 
</code></pre>

<p>in the <code>onCreate</code> method, I get </p>

<pre><code>c_tab_artists cannot be resolved or is not a field.
</code></pre>

<p>I've created the corresponding XML file in the drawable directory but the problem persists.</p>

<p>Does anyone know the reason for this error?</p>
