Errod in R.id, cannot find symbol variable id.
In xml file i have written
<LinearLayout>
..
</LinearLayout>
<EditText>
android:id="@+id/txtusername"
....
</EditText>
In .java file i have written
user = (EditText) findViewById(R.id.txtusername)
i am getting error - cannot find symbol : variable id
i am not getting error for R. After typing R, i am able to get
class,attr,layout,string options. but i am not getting id.
in R.java i have methods for all 3(attr,layout,string) but i dont have it for
id.If i add it i'am getting message R.java is system generated cannot modify it.
Re: Errod in R.id, cannot find symbol variable id.
I had the same error .
to solve it you have to save the code >>
Re: Errod in R.id, cannot find symbol variable id.
Cross posted at javaprogrammingforums.com
@OP: It is a very good idea to let everybody know when you do this. Just politeness, really, as anybody contributing to the discussion you have started ought to have access the to the complete discussion.
Also some people feel that contributing something to a question that may well have been answered elsewhere is a waste of time. If your multiple posts are discovered by accident - without you being upfront about it - (and they will be!), yet others won't respond out of annoyance.