java - Android "Cannot resolve symbol '@id/myLabel" -


i getting error saying "cannot resolve symbol '@id/mylabel'". same error following elements:

"cannot resolve symbol '@id/numberstudents'" "cannot resolve symbol '@id/accept'" 

please me resolve issue. sample of xml being pasted below.

thanks, abhilash kadala.

<?xml version="1.0" encoding="utf-8"?> <relativelayout     xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent">     <textview           android:id="@+id/mylabel"         android:text="name of student:"         android:layout_width="fill_parent"         android:layout_height="wrap_content"     />     <edittext         android:id="@+id/numberstudents"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:layout_below="@id/mylabel"     />     <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"     />     <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"     />  </relativelayout> 

it's because declaring id @+id/accept , using place @id/accept.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -