以下是Crashlytics
使用我的应用报告的错误
我已经尝试了几乎所有东西来解决它而没有运气
此应用使用ActionBar
和spinner
,没有异国情调。
它似乎发生在Samsung devices with Lollipop
以及更多,而且不常见
在5.1.1上有来自三星设备的logcat。
Fatal Exception: android.view.InflateException: Binary XML file line #44: Error inflating class com.android.internal.widget.ActionBarContextView
at android.view.LayoutInflater.createView(LayoutInflater.java:640)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:750)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:813)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:821)
at android.view.LayoutInflater.inflate(LayoutInflater.java:511)
at android.view.LayoutInflater.inflate(LayoutInflater.java:415)
at android.view.LayoutInflater.inflate(LayoutInflater.java:366)
at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:4262)
at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:4334)
at com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:2227)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4089)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3259)
at android.app.ActivityThread.access$1000(ActivityThread.java:197)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1681)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6872)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
Caused by java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance(Constructor.java)
at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
at android.view.LayoutInflater.createView(LayoutInflater.java:614)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:750)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:813)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:821)
at android.view.LayoutInflater.inflate(LayoutInflater.java:511)
at android.view.LayoutInflater.inflate(LayoutInflater.java:415)
at android.view.LayoutInflater.inflate(LayoutInflater.java:366)
at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:4262)
at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:4334)
at com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:2227)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4089)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3259)
at android.app.ActivityThread.access$1000(ActivityThread.java:197)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1681)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6872)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
Caused by java.lang.RuntimeException: Failed to resolve attribute at index 13
at android.content.res.TypedArray.getDrawable(TypedArray.java:774)
at android.view.View.(View.java:4009)
at android.view.ViewGroup.(ViewGroup.java:513)
at com.android.internal.widget.AbsActionBarView.(AbsActionBarView.java:74)
at com.android.internal.widget.ActionBarContextView.(ActionBarContextView.java:103)
at com.android.internal.widget.ActionBarContextView.(ActionBarContextView.java:98)
at com.android.internal.widget.ActionBarContextView.(ActionBarContextView.java:94)
at java.lang.reflect.Constructor.newInstance(Constructor.java)
at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
at android.view.LayoutInflater.createView(LayoutInflater.java:614)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:750)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:813)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:821)
at android.view.LayoutInflater.inflate(LayoutInflater.java:511)
at android.view.LayoutInflater.inflate(LayoutInflater.java:415)
at android.view.LayoutInflater.inflate(LayoutInflater.java:366)
at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:4262)
at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:4334)
at com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:2227)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4089)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3259)
at android.app.ActivityThread.access$1000(ActivityThread.java:197)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1681)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6872)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
感谢任何有用的想法!