Android错误之:You need to use a Theme.AppCompat theme (or descendant) with this activity.
来源:互联网 发布:金淘店管软件靠谱吗 编辑:程序博客网 时间:2024/05/16 00:39
错误描述:Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
原因分析:Activity继承的不是Activity而是兼容包,所以一定要使用兼容包AppCompat的主题。
解决方法:根据AppCompat的提示设置theme。如下:
<style name="NotitleTheme" parent="Theme.AppCompat.NoActionBar"> <item name="android:windowNoTitle">true</item> <item name="android:windowFullscreen">true</item></style>
0 0
- 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
- 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”错误
- 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开发~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 Studio 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解决方案
- Android异常-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 issue: You need to use a Theme.AppCompat theme (or descendant) with this activity
- Android need to use a Theme.AppCompat theme (or descendant) with this activity 错误
- 计算机网络(5层体系结构),数据传输过程
- GPS经纬度的表示方法及换算
- Qt on Android---第一个程序Hello World
- 特效类控件汇总
- JavaWeb学习之路-----Servlet
- Android错误之:You need to use a Theme.AppCompat theme (or descendant) with this activity.
- centos安装ElasticSearch
- 2015—2016半年总结
- string转换成URL时,如果string中有中文字符,URL无法识别
- Android WebView保存登陆cookie
- 关于使用ssh时或者TTL串口登陆时无法登陆,中文乱码问题
- 机房重构之窗体登录
- opengl实现鼠标控制和左右分屏观看全景图
- 腾讯