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

Help! Eclipse not creating new Android Application correctly.

Hey Guys, I have just updated my SDK and installed new updates for Eclipse, now whenever I start a project I get "R cannot be resolved - Android error".

Googling this has found it to be a common eclipse error where R.Java doesn't get created.

Any one have any ideas why this might happen or better yet, any steps to fix it? Nothing I have tried so far has helped.

Thanks!

2 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

I don't know why exactly this happens - maybe an error in one of the files in your res directory or maybe something became corrupted in Eclipse. You can try cleaning and rebuilding your project, restarting Eclipse, looking for a bad import statement of android.R, or one of these solutions in this question on StackOverflow.

Hope this helps!

Hey Ben, thanks for the response, Yeah I have tried everything. It seems a bit of a phantom error, I have re-downloaded the eclipse pack now and it seems ok.

Thanks again!