Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android

Eclipse Problems

I have had a lot of problems when using Eclipse.1. It says that "layout can not be resolved or is not a field" 2. It also says that "menu can not be resolved or is not a field" which both 1 and 2 are from the starting code 3. When creating an AVD i select everything but when I put in the target it says "Please insert a target" and it does not let me start.

1 Answer

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Copying my answer from your earlier question (that I just answered a little while ago):

Those "cannot be resolved" errors means that something in your generated code has gone awry. Usually it's a problem with R.java that gets generated when you build your project. It's built from the files in your "res" directory. It could be a problem with one of those files, but in your case it sounds like maybe something just got out of sync in Eclipse. Maybe try some of the solutions listed here? http://stackoverflow.com/q/885009/475217