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 trialstephen fontein
605 PointsCant add version Qualifier Folder into res/menu in Android Studio
at around 6:30 into the video Ben adds the new folder so that a new picture will be shown for old versions of android, but I can't do this in android studio, I have tried right clicking on res and adding new folders and fils with -11 at the end of the name but I don't see the folder in the res directory when I do this?
I have restared android studio and still don't see them? Or sometimes is says thats an invalid character?
Thanks for the help in advance!!
2 Answers
Jeremy Faith
Courses Plus Student 56,696 PointsI just tried it in Android Studio and it worked for me. In the res folder, I right clicked on the menu folder and selected Copy [Ctrl+C]. I then right clicked on the res folder and Pasted [Ctrl+V]. I was prompted with a Copy window. At the upper part of the window you should see Copy directory C: ......\main\res\menu. Under that you should see New Name. Here, you rename the copy of the folder to menu-v11. The To directory should be the same as the Copy directory above C: .....\main\res. Press ok and you should see the menu-v11 folder right below the menu folder.
Good Luck. I hope this helps you.
Danial Goodwin
13,247 PointsInstead of trying to create a new directory for /res/menu-11
, try /res/menu-v11
. ;)
For the prior one, without the v
, Android Studio doesn't understand what type of qualifier you are trying to add, so it's not added.