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 trialTimothy oberlander
1,395 PointsI didn't have a separate folder called values v21 so when I changed the styles value to "noAcationBar" it changed the pr
I'm not sure why I didn't have the folder but I tried updating my SDK with 5.0 and it did not change things.
6 Answers
Lisa Steendam
6,825 PointsMe neither but if I go in the values folder, there is a styles folder which contains 2 style.xml files. One of them has (v21) in light grey next to it. So instead of 2 values directories, you get one styles directory with an xml file for each version.
I am using Android Studio.
Ivan Grancharov
4,342 PointsI had the same issue, that the styles-v21 folder wasn't visible in my Android Studio 1.0.1 with a gradle settings minSdkVersion 14 targetSdkVersion 21
When I choose to use an android:Theme.Material.NoActionBar.Fullscreen in the default style.xml file it gave me an error for the API because Theme.Material needs API 21.
Then clicked on the error text , then Alt+Enter and click Override resource in styles-v21.
The styles-v21 folder will show up. Then i defined my correct Themes in the according locations and everything went fine.
Maybe there is more elegant solution that the above , but just want to share and hope it helps.
ian sobo
3,851 Pointsthis worked!
Ege Yalcin
1,061 PointsWell I think it's about your version of SDK or the version you had when you created the project. Try to recreate one, with the right version, you might get it.
Joannie Huang
6,195 PointsI just upgrade the Android Studio v1.0 (the latest version which Google rolled out 3 days ago) and also don't see the separate file for values21. Not sure it's normal or not...
Lisa Steendam
6,825 PointsSee my answer: you probably have the same layout like me now.
Stephen Goodwin
5,479 PointsI manually created the folder with explorer and copied styles file into it then back in Android Studio I synced and had no problems.
Jinwoo Cheon
842 PointsSame here. I'm using v22 and I also don't have a separate folder.
And on activity_main.xml, the changes (getting rid of action bar) is not applied. But when I launched the emulators, the changes WERE applied. I'm trying to get the changes to be visually applied on xml now.
Oron Ben Zvi
14,041 PointsOron Ben Zvi
14,041 PointsI also have 1.0 It's just that new projects aren't created with the styles-v21 anymore, even with the old file layout (and of course i cannot expand the "styles.xml" to the two versions).
I've also tried to create styles-v21 folder and added styles.xml exactly like Ben's but app crashes.
I guess it's working differently now. wonder how.