当前位置:  开发笔记 > 编程语言 > 正文

(Activity + preferencefragment)膨胀类com.android.internal.widget.ActionBarContainer的错误

如何解决《(Activity+preferencefragment)膨胀类com.android.internal.widget.ActionBarContainer的错误》经验,为你挑选了1个好方法。

我不知道这个错误。我从Google开发人员控制台获得了这些消息。z3,htc m8,m9等某些设备无法执行我的应用。有人可以给我一些有关该错误的提示吗?

堆栈跟踪 :

java.lang.RuntimeException: Unable to start activity ComponentInfo{package name/package name.SettingsActivity}: android.view.InflateException: Binary XML file line #31: Error inflating class com.android.internal.widget.ActionBarContainer
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2499)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2563)
    at android.app.ActivityThread.access$800(ActivityThread.java:162)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1438)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:209)
    at android.app.ActivityThread.main(ActivityThread.java:5900)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1005)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:800)
    Caused by: android.view.InflateException: Binary XML file line #31: Error inflating class com.android.internal.widget.ActionBarContainer
    at android.view.LayoutInflater.createView(LayoutInflater.java:633)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
    at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:3659)
    at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3755)
    at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:403)
    at android.app.Activity.setContentView(Activity.java:2174)
    at android.preference.PreferenceActivity.onCreate(PreferenceActivity.java:553)
    at pavkage name.SettingsActivity.onCreate(Unknown Source)
    at android.app.Activity.performCreate(Activity.java:5981)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1124)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2452)
    ... 10 more
    Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Constructor.newInstance(Native Method)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
    at android.view.LayoutInflater.createView(LayoutInflater.java:607)
    ... 24 more
    Caused by: java.lang.RuntimeException: Failed to resolve attribute at index 13
    at android.content.res.TypedArray.getDrawable(TypedArray.java:747)
    at android.view.View.(View.java:3785)
    at android.view.ViewGroup.(ViewGroup.java:513)
    at android.widget.FrameLayout.(FrameLayout.java:128)
    at android.widget.FrameLayout.(FrameLayout.java:124)
    at android.widget.FrameLayout.(FrameLayout.java:119)
    at com.android.internal.widget.ActionBarContainer.(ActionBarContainer.java:61)
    ... 27 more

styles.xml







    
wangtao
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有