XML file in layout folder error: can not be resolved or is not a field
<p>I'm using Eclipse with Android SDK. I have added a XML file in the layout folder called <code>voice_recog.xml</code> by <em>File > New > Other > Android > Android Xml File</em>.</p>

<p>On this code line:</p>

<pre><code>setContentView(R.layout.voice_recog);
</code></pre>

<p>I'm getting the following error:</p>

<blockquote>
  <p>voice_recog.xml can not be resolved or is not a field</p>
</blockquote>

<p>Thus, I think it is not seeing the file I created even though it's in the layout folder. How is this caused and how can I solve it?</p>
