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


Intellij IDEA cannot resolve symbol

Ive been following the java course and using Intellij IDEA. Now im having a problem I didnt have before with the PEZ Dispenser tutorial. Im adding the Game class from Game.java to the Main class in the Main.java, but i get cannot resolve symbol. This is very frustrating because it seems like a simple fix but I cant get it done. Ive check for typos, the package info and also compared it to the previous projects, some help plz?

1 Answer

Seth Kroger
Seth Kroger
56,413 Points

Have you tried the Alt+Enter quick-fix? Does it give you the option to import? Otherwise we'd have to see your code and project structure to see what the issue might be.