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

Kane Stoboi
Kane Stoboi
21,919 Points

Eclipse is generating files with errors

Whenever I try to create an android application project the .java files have errors throughout them. I went through all the Crystal Ball classes fine without any issues with this however after downloading some new tools with the SDK manager this has started happening. There are also errors shown in the MainActivity.java file from the Crystal Ball project which was working just fine before downloading the extra tools.

2 Answers

Harry James
Harry James
14,780 Points

Can you open up AndroidManifest.xml and tell me what your

        android:targetSdkVersion="??"

is equal to?

Make sure you have the SDK version in them quotes installed onto your system as well.

Kane Stoboi
Kane Stoboi
21,919 Points

I changed the project directory and it seemed to sort it self out thanks.

Harry James
Harry James
14,780 Points

Ok. Glad to hear it's fixed! :)