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 Basic Android Programming Accessing Views in Code: Declaring Variables

essam rashad
essam rashad
245 Points

Text in red, alt-enter doesn't work on new Android Studio, what should I do instead?

Hey,

Up till now everything has been very clear but this video used a lot of new jargon which made it very difficult to understand. For example, methods was not explained, among others. As a result Im just copying what Ben does on screen, but using the new Studio, some things are different. What is the idea behind importing, what is a private, and how do you suggest I import the thing (as alt-enter just brings up another window, unlike in the video)

Thanks a lot, E

2 Answers

Seth Kroger
Seth Kroger
56,414 Points

If it gives you a menu with the top option of "Import class" use that. The blinking cursor needs to be directly on the red text, not just on the same line or elsewhere, when you type Alt+Enter.

The course does assume you know some Java already or you've taken the courses in the Java Track as a prerequisite to introduce you to the language first. If you're unfamiliar with the language I recommend taking those courses first.

essam rashad
essam rashad
245 Points

Thanks! I think I'll go back have have a look at the Java course first before continuing!

With the latest Studio, hover over the red text and left click to underline then, alt + enter.