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 Boyes2,516 Points
Crystal Ball: Eclipse Error Message
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.
Couple of things for you to try:
Go to your manifest and press
Ctrl + Shift + FThis should reformat your code (Anytime my manifest misbehaves this seems to do the trick)
Project -> Cleanand clean your project
If 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.