Florian Monfort Florian Monfort - 1 year ago 116
Android Question

AS does not find symbol, even after importing TextView

I am learning how to do Android development right now and arrived at this tutorial on Google's website:


However after following the instructions - I'm assuming I missed something - here is what I get in AS:

enter image description here

And so Gradle will not compile it.

Answer Source

you should create an xml and declare things in it .in resource->lay out folder for using this things in java in


and in java class file

TextView txtView = (TextView) findViewById(R.id.t_id);

and you should declare and use the text view inside oncreate function

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download