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 trialJoshua Schoen
900 PointsThis has nothing too do with this video. But I see LOTS of red highlighted text. And all the errors are the same one.
Every time I try to run the app, it crashes. I believe this error is the reason. Lots of things are highlighted red with the message : " Cannot resolve method." A lot of this is highlighted. I thought it might be a variable glitch, but idk. Many things are highlighted such as my factLabel.setText My setText is highlighted with the message. And I wanted to know how to fix this, because all my errors consist of this problem. Thanks.
2 Answers
Ryan Farber
5,329 PointsWithout code, I can't tell you exactly what is wrong. I'll go step-by-step on some of the potential areas where you have it wrong
1.) factLabel needs to refer to something. In this case, final TextView factLabel = (TextView) findViewById(R.id.factTextView);
2.) FactLabel is not the same as factLabel.
Let me know where the exact highlighted red is, and the code surrounding it.
haunguyen
14,985 PointsMaybe some missing imports?
Or
your computer is slow and android studio or eclipse failed to resolve packages, or would take forever to resolve packages. Happened to me frequently on older/slower systems.