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
Luke Glazebrook
13,564 PointsInteractive Story app crashing.
Hello everyone!
After realising I did not have the 'values-v21' folder like Ben did I decided I would go ahead and make it myself after reading a suggestion here on the forums. I also created the 'styles.xml' file that it is supposed and contain and gave it the same content as the 'styles.xml' file in the 'layout' directory.
However, this did not work as I expected and, subsequently, my app started to crash on launch. Does anyone know how I can fix this bug?
values-v21/styles.xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="android:Theme.Material.Light.NoActionBar">
<!-- Customize your theme here. -->
</style>
</resources>
Thanks a lot to anyone who helps me out with this.
EDIT: After doing some research online I have found that if I am using an AppCompat theme I do not need to use a 'values-v21' type folder as the theme will take care of this for me. Is this true?