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


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