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

Android

Nicholas Notte
Nicholas Notte
729 Points

Crystal Ball Theme Error, Shake things up

Hey all,

I'm at the step of testing the accelerometer on the phone but it won't run due to 3 theme errors.

Description Resource Path Location Type error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. styles.xml /CrystalBall/res/values-v14 line 8 Android AAPT Problem

Description Resource Path Location Type error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml /CrystalBall/res/values line 7 Android AAPT Problem

Description Resource Path Location Type error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml /CrystalBall/res/values-v11 line 7 Android AAPT Problem

I'm not sure how these came up and I don't know how to fix them. Thanks for any help.

I have the same issue. I have even re-downloaded the project files (from here: http://treehouse-code-samples.s3.amazonaws.com/Android/android-island1-stage4-video2.zip) and reimported them as per the instructions. Having not yet signed up for full access, it will be interesting to see how quickly issues are handled.

1 Answer

Never mind, I found the solution myself in the end. It is discussed here: http://stackoverflow.com/questions/21900853/no-resource-found-theme-appcompat-light-darkactionbar

TL;DR, Go to the "Adding libraries with resources" section here: https://developer.android.com/tools/support-library/setup.html