报错方案:You need to use a Theme.AppCompat theme (or descendant) with this activity.
来源:互联网 发布:马龙丁宁知乎 编辑:程序博客网 时间:2024/05/21 10:55
当你的报错为:You need to use a Theme.AppCompat theme (or descendant) with this activity.的时候.
第一步检查你的activity,通常你的activity应该是因为集成了AppCompatActivity,而你的Theme写法不被认可.
比如,你是否是这么写的
android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen"
第二步,修改错误二种方案:
第一,你是不是非常需要AppCompatActivity,如果不是,那么你修改成Activity.报错结束.
第二,你需要AppCompatActivity,那么,修改成:
android:theme="@style/Theme.AppCompat.Light.NoActionBar"
阅读全文
0 0
- 报错方案: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.
- Activity使用主题不兼容报错-You need to use a Theme.AppCompat theme (or descendant) with this activity
- 使用AlertDialog报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.之解决
- 使用AlertDialog报错 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”错误
- 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解决方法
- 【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.
- Renting Bikes(二分+贪心)
- ByteBuffer.mark()方法
- 项目实训-千寻-LBS派单逻辑
- 面试问题什么是异步非阻塞
- Eclipse搭建Scala入门经典程序Helloworld
- 报错方案:You need to use a Theme.AppCompat theme (or descendant) with this activity.
- makefile编写(一)基本规则
- MySQL条件控制(case when...then...else...end) 详细解释
- [ASDFZ-NOIP2016模拟]植树方案
- windows 10 安装xgboost
- 关于在linux上安装tomcat并部署javaweb项目
- ubuntu mysql 5.6版本的删除,安装,中文乱码文件配置
- 编程实现:组合_排列
- codeforces D. An overnight dance in discotheque