Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialsyalih
16,468 Pointscant find resource name
in this TextView factLabel = (TextView) findViewById(R.id.factTextView);
after R.id. in my android studio it not showing "faceTextView" when i enter manually error come say create id for this
2 Answers
Gunjeet Hattar
14,483 PointsIn this line you are referring to factTextView
TextView factLabel = (TextView) findViewById(R.id.factTextView);
However in your concluding statement you are looking for faceTextView. Which one is it?
Make sure you spelt the TextView correctly in the layout xml file.
Hope this helps
Matthew Stanciu
4,222 PointsMine still isn't working. I don't know what I'm doing wrong.
// Declare our View variables and assign them the Views from the layout file
TextView factLabel = (TextView) findViewById(R.id.factTextView);
Button showFactButton;
syalih
16,468 PointsMy mistake now everything working gr8 thankx :)
Ratul Sarna
Courses Plus Student 11,618 PointsRatul Sarna
Courses Plus Student 11,618 PointsWe would need to see more of your code. Could you please copy and paste your onCreate() method as well as the layout xml file for the activity?