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 Build a Simple Android App (2014) Improving Our Code Adding More Colors

While I paste the context from FactBook to ColorWheel,why it shows this message: Select Classes to Import (C)java.ut

this message details: The code fragment which you have pasted uses classes that are not accessible by imports in the new context. select class that you want to import the new file(C)java.util.Random

1 Answer

Hi Hunche,

If you click once on the word which shows the error message and then do Alt + Enter, the error should go away.

You don't need to understand why it does this, but if you want to, continue reading.

The package that holds ColorWheel needs to be imported into the file that you are working in otherwise the code in the file that you are working in can't see the ColorWheel class and throws up the error that you saw. So, by doing the Alt + Enter shortcut it automatically writes the necessary code to import it.

If you have any more questions, fire back and I'll do my best to answer them.