I'm creating an app with minSdkVersion="8" and targetSdkVersion="21"
In AndroidManifest I have:
android:theme="@style/AppTheme"
in the file styles.xml:
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
</style>
<style name="AppTheme" parent="AppBaseTheme">
</style>
in the file values-v11/styles.xml:
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
in the file values-v14/styles.xml:
<style name="AppBaseTheme" parent="Theme.AppCompat.Light.DarkActionBar">
The Activity
extends to ActionBarActivity
When I run the app I get this error:
java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
What i need to do to have an app running well?