【Android】You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
来源:互联网 发布:sql delete 编辑:程序博客网 时间:2024/04/28 18:11
原文http://www.cnblogs.com/jshen/p/3996071.html
报错如下:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.test2/com.example.test2.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
解决方法:创建的activity是MainActivity extends ActionBarActivity这样的。把后面的ActionBarActivity改成Activity,然后导包,把下面报错的地方删掉运行就不报错了。。。
0 0
- 【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解决方法
- 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解决方法
- 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问题一: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.
- 黑马程序员:iOS基础——个人笔记(六)
- 树链剖分
- The Second-System Effect
- Anagrams
- 黑马程序员——c语言基础:进制的转换
- 【Android】You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- UVA 10294 Arif in Dhaka (First Love Part 2)(等价类)
- 基于Redis实现分布式消息队列(4)
- 未将对象引用设置到对象的实例。
- cocos2dx 3.x 命令行创建和编译工程
- 基于Redis实现分布式消息队列(汇总目录)
- MySQL Fabric
- 生成APK的签名
- 答辩完的随笔