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
Jett van Note266 Points
RESOLVED NO NEED FOR HELP
Hi! I followed the directions (or so I think) given by the first "adding an image" video but I have an error message I can't resolve in the AndroidManifest.xml file.
The error message is that MainActivity is not a class in my "com.example.crystalball" package, but it most certainly is and I have no idea why it won't recognize it. I have been at it for hours and I have programmed in java before and have a CS degree, so I'm no novice (though I pursued other degrees after so I diverged from my CS track, so I'm also no expert either).
I think the problem is that in the Activity Nodes section of the manifest I don't have MainActivity there as a node and when I tried to add it, it is nowhere to be found. So I guess what I really need to do is to find out how to add this node...
Help me Obi-Wan Kenobi...you're my only hope...
<manifest package="com.example.crystalball" android:versionCode="1" android:versionName="1.0" xmlns:android="http://schemas.android.com/apk/res/android"> . . . <activity android:name=".MainActivity" android:label="@string/app_name" android:screenOrientation="portrait" > //activity is where I get the error message that is unhappy with MainActivity