You need to use a Theme.appcompat theme with this activity
2015-05-24 10:55
330 查看
今天创建activity时,莫名其妙出现问题:
java.lang.illegalstateException:You need to use a Theme.appcompat theme with this activity
检查创建的activity发现了问题,原来是extends ActionBarActivity的问题,把extends ActionBarActivity改成extends Activity就可以了。其实是它引用了support. V7中的actionbar才导致错误。
java.lang.illegalstateException:You need to use a Theme.appcompat theme with this activity
检查创建的activity发现了问题,原来是extends ActionBarActivity的问题,把extends ActionBarActivity改成extends Activity就可以了。其实是它引用了support. V7中的actionbar才导致错误。
相关文章推荐
- Activity主题设置问题 You need to use a Theme.AppCompat theme (or descendant) with this activity.
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- Android Studio: You need to use a Theme.AppCompat theme (or descendant) with this activity.
- Android问题集锦之二十八:You need to use a Theme.AppCompat theme (or descendant) with this activity.
- Android问题集锦之二十八:You need to use a Theme.AppCompat theme (or descendant) with this activity.
- You need to use a Theme.AppCompat theme (or descendant) with this activity.
- 10. You need to use a Theme.AppCompat theme (or descendant) with this activity
- You need to use a Theme.AppCompat theme (or descendant) with this activity.
- You need to use a Theme.AppCompat theme (or descendant) with this activity.
- You need to use a Theme.AppCompat theme (or descendant) with this activity.
- You need to use a Theme.AppCompat theme (or descendant) with this activity。
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决
- You need to use a Theme.AppCompat theme (or descendant) with this activity.
- android Bug:You need to use a Theme.AppCompat theme (or descendant) with this activity解决方案
- 对话框报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.
- You need to use a Theme.AppCompat theme (or descendant) with this activity.
- 错误:You need to use a Theme.AppCompat theme (or descendant) with this activity.
- You need to use a Theme.AppCompat theme (or descendant) with this activity.
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- You need to use a Theme.AppCompat theme (or descendant) with this activity