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!
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

Lauren Boyes
2,516 PointsCrystal Ball: Eclipse Error Message
Hi,
Hope someone else has come across this because I've run out of ways to get this working.
Any time I make any changes to the AndriodManifest.xml file (such as changing the screen orientation) Eclipse begins to show an error message relating to
<activity
...
>
When hovering over <activity I get the error message;
"Class referenced in the manifest, com.example.thecrystalball.MainActivity, was not found in the project or the libraries"
I do not understand how making a minor change could result in the activity class not being recognised.
Any suggestions would be very much appreciated.
Thanks
1 Answer

Ernest Grzybowski
Treehouse Project ReviewerCouple of things for you to try:
Go to your manifest and press
Ctrl + Shift + F
This should reformat your code (Anytime my manifest misbehaves this seems to do the trick)Go to
Project -> Clean
and clean your projectIf those steps have worked, make sure you update your environment by opening up SDK manager and installing any updates, and then go to `Help -> Check for Updates' to make sure that you are totally up to date.
Lauren Boyes
2,516 PointsLauren Boyes
2,516 PointsIt just needed a wee clean, thank you very much!
Ernest Grzybowski
Treehouse Project ReviewerErnest Grzybowski
Treehouse Project ReviewerAwesome! Glad I could help.