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

Miles Torres
Miles Torres
2,316 Points

what does it mean by Can't resolve symbol?

look ^^^^^

Conrad Spotts
Conrad Spotts
11,768 Points

When "Cannot resolve symbol" shows up as a compiler error (an error that happens when you try to run your program), it basically means that there is a reference missing in the code you've written. I'm not sure if you meant to include an example with this question since I'm not seeing one, but whenever I see it in my own experience it's because I either forgot to define a variable or misspelled something.

I would recommend checking over your code and looking for mistakes like a misspelled method or class name. A symbol, if I'm not mistaken, is something in your code that represents something else like a variable or a method. So if you have a method you have defined somewhere in your code that you then try to call somewhere else, but have it misspelled, you will likely get this error and it will give you a message showing which line of your code had the error. Here's a little more information on it that may be a little more concise than the way I've laid it out: http://www.tech-faq.com/cannot-resolve-symbol-error.html

Miles Torres
Miles Torres
2,316 Points

thank you i have fixed this error .