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
Donovan Matthysen4,370 Points
mFactLabel.setText - where does that come from? It wasn't in the "Build a simple android app class?
How do i resolve the error i'm getting? (Incomparable types?)
Michael Walker45,428 Points
I'm sure you've long since moved on from this issue by now, but hopefully this response helps others who take this class. I also noticed that some of the variables have changed. It appears the code was refactored a bit since the "Build a Simple App" class, but there is an easy fix. In this case just use the variable factTextView instead of mFactLabel and that should resolve any conflicts. :-)
I'm not exactly sure what your problem is but I'll try my best to help you out :) Is it possible that you are trying to set the text of mFactLabel and the value you want to be shown is an integer or another type? If that's the case write that: mFactLabel.setText("" + VARIABLENAME); for VARIABLENAME use the name of the variable you want to be shown.
I hope that was helpful, Patrick :-)