【Android】java.lang.IllegalArgumentException: AppCompat does not support the current theme features
来源:互联网 发布:关于淘宝预售 编辑:程序博客网 时间:2024/04/29 01:07
作者:程序员小冰 (转载请说明出处)博客地址:http://blog.csdn.net/qq_21376985
前段时间看到了一个项目,里面引用了toolbar,AndroidStudio的项目,类是继承的ActionbarActivity,
看到里面报了一个错误,大概是:
java.lang.IllegalArgumentException: AppCompat does not support the current theme features
具体详细代码是:
java.lang.RuntimeException: Unable to start activity java.lang.IllegalArgumentException: AppCompat does not support the current theme features at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) at android.app.ActivityThread.access$800(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5001) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.IllegalArgumentException: AppCompat does not support the current theme features at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:360) at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:246) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:106) at com.grumoon.pulllistview.sample.AppMain.onCreate(AppMain.java:39) at android.app.Activity.performCreate(Activity.java:5247) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) at android.app.ActivityThread.access$800(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5001) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) at dalvik.system.NativeStart.main(Native Method)
最后发现了系统主题没有添加支持。解决方法,在mainfest中所引用的主题style添加:
<item name="windowActionBar">false</item> <item name="windowNoTitle">true</item>
然后问题解决。
1 0
- 【Android】java.lang.IllegalArgumentException: AppCompat does not support the current theme features
- IllegalArgumentException: AppCompat does not support the current theme features
- IllegalArgumentException: AppCompat does not support the current theme features
- Android:AppCompat does not support the current theme features
- AppCompat does not support the current theme features
- AppCompat does not support the current theme features
- AppCompat does not support the current theme features
- AppCompat does not support the current theme features:
- AppCompat does not support the current theme features的解决方法
- AppCompat does not support the current theme features
- AppCompat does not support the current theme features
- IllegalArgumentException: AppCompat does not support the current theme feature
- Android开发报错:AppCompat does not support the current theme features
- AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOver
- toolbar使用时显示AppCompat does not support the current theme features: { windowActionBar: false, windowA
- 使用ToolBar时的报错AppCompat does not support the current theme features
- ToolBar报错:AppCompat does not support the current theme features
- style 实现全屏和AppCompat does not support the current theme features错误的解决
- android 开发 - 使用okhttp框架封装的开发框架
- Uva 806 - Spatial Structures(四分树+模板)
- cpu hotplug 源码分析
- 2.9
- jquery 显示*天*时*分*秒实现时间计时器_jquery
- 【Android】java.lang.IllegalArgumentException: AppCompat does not support the current theme features
- redis与memcached的区别
- mongo基本命令
- 【Ionic+AngularJS 开发】之『个人日常管理』App(一)
- Qt入门之信号与槽机制
- mybatis--延迟加载
- 程序员养成之道
- hzy002
- Java基础--正则表达式