Android "Cannot resolve symbol '@id/myLabel"
<p>I am getting an error saying "<code>Cannot resolve symbol '@id/myLabel</code>'".
same error is for following elements:</p>

<pre><code>"Cannot resolve symbol '@id/numberStudents'"
"Cannot resolve symbol '@id/accept'"
</code></pre>

<p>Please help me to resolve this issue.
Sample of my xml is being pasted below.</p>

<p>Thanks,
Abhilash Kadala.</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;
    &lt;TextView  
        android:id="@+id/myLabel"
        android:text="Name of student:"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
    /&gt;
    &lt;EditText
        android:id="@+id/numberStudents"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/myLabel"
    /&gt;
    &lt;Button
        android:id="@+id/accept"
        android:text="Accept"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/numberStudents"
        android:layout_alignParentRight="true"
        android:layout_marginLeft="10px"
    /&gt;
    &lt;Button
        android:id="@+id/cancel"
        android:text="Cancel"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_toLeftOf="@id/accept"
        android:layout_alignTop="@id/accept"
    /&gt;

&lt;/RelativeLayout&gt;
</code></pre>