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 trial

Android Build a Simple Android App with Java Basic Android Programming Accessing Views in Code: Assigning Variables

Nadav Kern
PLUS
Nadav Kern
Courses Plus Student 1,155 Points

Where did he go at 3:27 to change the error?

Where did he go at 3:27 to fix the error? Also another problem is that it shows me facttextView instead of factTextView and when I change it to factTextView it shows me the words in red, I could really use some help.

2 Answers

Ben Deitch
STAFF
Ben Deitch
Treehouse Teacher

Hey Nadev!

At 3:27 we're in a separate Java project to show how Android changed in it's newest release; if this part of the video doesn't make sense, don't worry about it! Also, if it shows you 'facttextView' instead of 'factTextView', then you probably declared your ID as 'facttextView' in the layout file.

Hope that helps!

Roger Vanderveen
Roger Vanderveen
1,117 Points

So you warp to an unidentified piece of code, tell us to make changes to it, but you don't tell us where. Do I actually need to make changes to anything?

Ben Deitch
Ben Deitch
Treehouse Teacher

Nope. I'm just showing how the 'findViewById' method was changed in the newest version of Android; no changes need to be made to the project.

so where could i find it?

David Franco
David Franco
3,252 Points

You don't need to if you upgrade to the newest version of Android Studio