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
gigik
1,653 PointsAdding the onClick() Method
Hi
Hoping to get a little guidance. I am up to the step in Building An App where it's time for the Adding the onClick() method stage. I'm finding this a little hard to keep up with as I can't seem to match Ben's screen. His screen shows 'R' dropdown to 'debug'then a treehouse folder which drops down to 'r' i dont seem to have this when i drop down?
Also, a lot of my codes are remaining red and have 'unable to resolve when i click on them' not sure if this is as a result of the not having the correct resource file.
Codes which are red are 'r', 'button' 'string' and 'setonclicklistener'
I hope this makes sense to someone, i wish i could insert a print screen to paint my situation a little better!
Thanks in advance
Gi
1 Answer
Christina Lazzara
7,142 PointsI have had similar issues and Its mostly because of version of android studio. If you wanted you could post the code here and we could all see if it something else thats preventing it from letting you.