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

Android

Miles Torres
Miles Torres
2,316 Points

I got an IllegalStateException

i got this error info: ''' Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. at android.support.v7.app.ActionBarActivityDelegate.onCreate(ActionBarActivityDelegate.java:151) at android.support.v7.app.ActionBarActivityDelegateBase.onCreate(ActionBarActivityDelegateBase.java:138) at android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:123) at com.example.milespc.stormy.MyActivity.onCreate(MyActivity.java:49)''' on this line of code: '''super.onCreate(savedInstanceState);'''

1 Answer

Miles Torres
Miles Torres
2,316 Points

Nevermind I found that I have to change my apptheme in my manifest file to an Appcompat one.