Eclipse: Android not adding id class to R.java
<p>I am currently writing a program for an android app and I keep running into a problem where I get an error <code>"id cannot be resolved or is not a field"</code>. For example I have a line of code: </p>

<pre><code>mBodyText = (EditText) findViewById(R.id.body); 
</code></pre>

<p>After viewing the <code>R.java</code> class there is no id class. I previously copied and pasted an example online and it also implemented a line of code that was similar and it added the id class to <code>R.java</code>. </p>

<p>I'm just wondering how to correct this problem. I have researched it and some people suggested to others to <code>import android.R</code> and this corrects some errors but then creates new ones saying that the part after is not in that category. </p>
