eclipse - Android style app minSdkVersion="8" targetSdkVersion="21" -


i'm creating app minsdkversion="8" , targetsdkversion="21"

in androidmanifest have:

android:theme="@style/apptheme" 

in file styles.xml:

<style name="appbasetheme" parent="theme.appcompat.light"> </style> <style name="apptheme" parent="appbasetheme"> </style> 

in file values-v11/styles.xml:

<style name="appbasetheme" parent="theme.appcompat.light"> 

in file values-v14/styles.xml:

<style name="appbasetheme" parent="theme.appcompat.light.darkactionbar"> 

the activity extends actionbaractivity

when run app error:

java.lang.illegalstateexception: need use theme.appcompat theme (or descendant) activity.

what need have app running well?

the reason having problem because activity extending actionbaractivity requires appcompat theme applied.

change java inheritance actionbaractivity activity.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -