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

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