Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android

Unable to animate Crystal ball

As the title says I am unable to get the ball animation running and it gives me multiple errors that Im not sure of. I have followed Bens instructions to the point but it has still given me problems. I have all the images and the drawable.xml code for the animation all in the proper Drawable-mdpi folder. I have included images of the errors that I got here

Also, these errors only show up once I try to run it on my virtual device. I am not sure what errors its talking about but any help would be appreciated. Thank you.

2 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

It sounds like there is an error somewhere in your res directory. Try the following and report back here if it works or not:

  1. Right-click on res in the Package Explorer in Eclipse and then select "Refresh".
  2. In the top menu, click on Project > Clean and clean your Crystal Ball project.
  3. Then try running it again.

Thanks Ben, but it only half worked. I've gotten a different error this time. Images There was a lot of log in between the black text. (Im not sure if this will help, but I also remeber that when I booted the app after I added the white glow on the text, the app would load fine but the glow would not appear. I brushed it off as a minor problem that I would deal with later)

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Unparsed aapt errors can usually be cleared up with a clean and/or restart. Check out this answer on StackOverflow: http://stackoverflow.com/a/6767371/475217