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 trialprashant kurup
291 PointsTheme.AppCompact
Using - android studio 1.1 preview 1
when i try to change the app theme to holo light noactionbar, it throws this error
java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
However i fixed it using
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
in the styles.xml file
2 Answers
elfproductivity
10,489 PointsIn the class file, change "extends ActionBarAcitivty" to "extends Activity".
prashant kurup
291 PointsThanks that worked perfectly! Been noticing quite a few changes in terms of default settings on this preview 1 version of android studio apart from the ones explicitly stated in the videos.