Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant)
Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant)
问题:
当在AndroidManifest.xml文件的application的节点设置了属性:
android:theme="@android:style/Theme.NoTitleBar"
Activity继承了ActionBarActivity就回出现上述错误。
解决办法:
让Activity去继承Activity而不是ActionBarActivity
Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant)相关推荐
- Caused by:java.lang.IllegalStateException at android.media.MediaPlayer._setDataSource(Native Method)
使用Mediaplayer播放本地音频,在第二次调用mediaplayer.setDataSource()时报错如下: Caused by: java.lang.IllegalStateExcepti ...
- 解决: Caused by: java.lang.IllegalStateException: Cannot load driver class: com.mysql.jdbc.Driver
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1. 报错: Caused by: java.lang.IllegalStateException: ...
- Caused by: java.lang.IllegalStateException: Failed to introspect Class
Spring-Data-ElasticSearch整合spring boot问题 Caused by: java.lang.IllegalStateException: Failed to intro ...
- Caused by: java.lang.IllegalStateException: Failed to introspect Class [com.mchange.v2.c3p0.ComboPoo
主要问题:Caused by: java.lang.IllegalStateException: Failed to introspect Class [com.mchange.v2.c3p0.Com ...
- 关于Caused by: java.lang.IllegalStateException:问题解决办法!
IDEA中出现Caused by: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalin ...
- 【问题已解决】Caused by: java.lang.IllegalStateException
错误 Caused by: java.lang.IllegalStateException: Property 'configuration' and 'configLocation' can not ...
- Caused by: java.lang.IllegalStateException: javax.websocket.server.ServerContainer not available
websocket导致spring boot 项目单元测试启动失败的问题解决 在单元测试时,项目启动报错 Caused by: java.lang.IllegalStateException: jav ...
- Caused by java lang IllegalStateException SpringJUnit4Clas
分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow 也欢迎大家转载本篇文章.分享知识,造福人民,实现我们中华民族伟大复兴! 1.错误 ...
- Caused by: java.lang.IllegalStateException: Serialized class cn.bloghut.dto.ProducterDto must implem
错误产生环境 使用zookeeper+dubbo进行远程调用时产生 错误描述 Caused by: java.lang.IllegalStateException: Serialized class ...
最新文章
- Python 中的locals()
- Windows Sockets2 详解2——堵塞与非堵塞模式
- Visual Entity 下载列表(最新版为 2.0.0 ,已支持Visual Studio 2013)
- Invalid character escape '\o'.
- ListView控件学习系列2-编辑ListView(Edit,Update,Insert,Delete)
- QT安卓web使用mysql_Qt使用MySQL笔记一
- 安装 | MatlabR2019b: License Manager Error -8. License checkout failed.
- Java黑皮书课后题第6章:6.37(格式化整数)编写一个测试程序,提示用户输入一个数字以及宽度,显示通过调用format方法返回的字符串
- picACG本地缓存目录_手机上本地存储的哪些文件、文件夹不能删?
- QPW 公告表(tf_notice)
- 黄哲铿:妙用“缓存”,应对亿级流量峰值(文末赠书)
- 带父节点的平衡二叉树_Python算法系列—深度优先遍历算法【二叉树】
- 快手为什么需要周杰伦?
- POJ 1141 Brackets Sequence
- Android4.4 Input 输入上层分析
- 软件过程管理课程知识点总结
- 新员工入职表_舞钢农商银行:组织新招录员工开展反假币培训
- 好的Python培训机构具备的条件
- ​浅谈 Java 后端开发工程师腾讯面试经历分享总结
- 为什么阿里不允许用Executors创建线程池,而是通过ThreadPoolExecutor的方式?