you need to use a Theme.AppCompat theme(or descenbant) with this activity
来源:互联网 发布:文华模拟交易软件 编辑:程序博客网 时间:2024/06/06 02:59
报错
07-27 10:43:33.035: D/AndroidRuntime(10411): Shutting down VM07-27 10:43:33.035: W/dalvikvm(10411): threadid=1: thread exiting with uncaught exception (group=0x41a8e700)07-27 10:43:33.035: E/AndroidRuntime(10411): FATAL EXCEPTION: main07-27 10:43:33.035: E/AndroidRuntime(10411): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.guessmusic.ui/com.guessmusic.ui.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.07-27 10:43:33.035: E/AndroidRuntime(10411): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2295)07-27 10:43:33.035: E/AndroidRuntime(10411): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2349)07-27 10:43:33.035: E/AndroidRuntime(10411): at android.app.ActivityThread.access$700(ActivityThread.java:159)07-27 10:43:33.035: E/AndroidRuntime(10411): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)07-27 10:43:33.035: E/AndroidRuntime(10411): at android.os.Handler.dispatchMessage(Handler.java:99)07-27 10:43:33.035: E/AndroidRuntime(10411): at android.os.Looper.loop(Looper.java:137)07-27 10:43:33.035: E/AndroidRuntime(10411): at android.app.ActivityThread.main(ActivityThread.java:5419)07-27 10:43:33.035: E/AndroidRuntime(10411): at java.lang.reflect.Method.invokeNative(Native Method)07-27 10:43:33.035: E/AndroidRuntime(10411): at java.lang.reflect.Method.invoke(Method.java:525)07-27 10:43:33.035: E/AndroidRuntime(10411): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1209)07-27 10:43:33.035: E/AndroidRuntime(10411): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1025)07-27 10:43:33.035: E/AndroidRuntime(10411): at dalvik.system.NativeStart.main(Native Method)07-27 10:43:33.035: E/AndroidRuntime(10411): Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.07-27 10:43:33.035: E/AndroidRuntime(10411): at android.support.v7.app.ActionBarActivityDelegate.onCreate(ActionBarActivityDelegate.java:151)07-27 10:43:33.035: E/AndroidRuntime(10411): at android.support.v7.app.ActionBarActivityDelegateBase.onCreate(ActionBarActivityDelegateBase.java:138)07-27 10:43:33.035: E/AndroidRuntime(10411): at android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:123)07-27 10:43:33.035: E/AndroidRuntime(10411): at com.guessmusic.ui.MainActivity.onCreate(MainActivity.java:44)07-27 10:43:33.035: E/AndroidRuntime(10411): at android.app.Activity.performCreate(Activity.java:5372)07-27 10:43:33.035: E/AndroidRuntime(10411): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1104)07-27 10:43:33.035: E/AndroidRuntime(10411): at com.qihoo360.mobilesafe.loader.c.callActivityOnCreate(SourceFile:98)07-27 10:43:33.035: E/AndroidRuntime(10411): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2257)07-27 10:43:33.035: E/AndroidRuntime(10411): ... 11 more
这个问题出现是因为TitleBar,如果你设置了不要titlebar那你的Activity就不要再继承ActionBarActivity改成Activity就行了
0 0
- you need to use a Theme.AppCompat theme(or descenbant) 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.
- 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 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的问题
- VC2010用IE调试OCX单步
- Java class对象的详解
- poj-3061-Subsequence 尺取法/双指针法
- 【DP】POJ 2385
- postgresql数据库存储图片文件
- you need to use a Theme.AppCompat theme(or descenbant) with this activity
- java多线程-专题-聊聊并发(十)生产者消费者模式
- 关于st的插件,我之前windows用的插件有哪些?
- UITableView修改Cell的宽度问题
- Android使用http协议的GET和POST方法!!!
- struts2配置文件Demo_Me
- javascript中的数组的使用
- iOS开发-a few animation Effect
- mybatis 中文文档