"Error inflating class com.android.internal.widget.ActionBarContainer" on some Sony devices -
i've got lot of error reports sony devices android 5.0.2 in past few weeks. seems arrayindexoutofboundsexception
occurs when inflating actionbarcontainer
. actionbarcontainer
internal class, never used directly in code. line of code in stack trace call activity.setcontentview()
. ideas? thanks.
the stack trace:
java.lang.runtimeexception: unable start activity componentinfo{com.my.app/com.my.app.mainactivity}: android.view.inflateexception: binary xml file line #31: error inflating class com.android.internal.widget.actionbarcontainer @ android.app.activitythread.performlaunchactivity(activitythread.java:2345) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2405) @ android.app.activitythread.access$800(activitythread.java:149) @ android.app.activitythread$h.handlemessage(activitythread.java:1324) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:211) @ android.app.activitythread.main(activitythread.java:5317) @ java.lang.reflect.method.invoke(native method) @ java.lang.reflect.method.invoke(method.java:372) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1016) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:811) caused by: android.view.inflateexception: binary xml file line #31: error inflating class com.android.internal.widget.actionbarcontainer @ android.view.layoutinflater.createview(layoutinflater.java:633) @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:743) @ android.view.layoutinflater.rinflate(layoutinflater.java:806) @ android.view.layoutinflater.inflate(layoutinflater.java:504) @ android.view.layoutinflater.inflate(layoutinflater.java:414) @ android.view.layoutinflater.inflate(layoutinflater.java:365) @ com.android.internal.policy.impl.phonewindow.generatelayout(phonewindow.java:3500) @ com.android.internal.policy.impl.phonewindow.installdecor(phonewindow.java:3572) @ com.android.internal.policy.impl.phonewindow.setcontentview(phonewindow.java:371) @ android.app.activity.setcontentview(activity.java:2144) @ com.my.app.mainactivity.oncreate(unknown source) @ android.app.activity.performcreate(activity.java:5933) @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1105) @ android.app.activitythread.performlaunchactivity(activitythread.java:2298) ... 10 more caused by: java.lang.reflect.invocationtargetexception @ java.lang.reflect.constructor.newinstance(native method) @ java.lang.reflect.constructor.newinstance(constructor.java:288) @ android.view.layoutinflater.createview(layoutinflater.java:607) ... 23 more caused by: java.lang.arrayindexoutofboundsexception: length=7; index=7 @ android.content.res.resources.topreloadcookie(resources.java:2447) @ android.content.res.resources.loaddrawable(resources.java:2475) @ android.content.res.typedarray.getdrawable(typedarray.java:749) @ android.view.view.<init>(view.java:3806) @ android.view.viewgroup.<init>(viewgroup.java:492) @ android.widget.framelayout.<init>(framelayout.java:115) @ android.widget.framelayout.<init>(framelayout.java:111) @ android.widget.framelayout.<init>(framelayout.java:107) @ com.android.internal.widget.actionbarcontainer.<init>(actionbarcontainer.java:57) ... 26 more
the list of build.fingerprint of these devices includes:
- sony/c6802/c6802:5.0.2/14.5.a.0.270/3305956307:user/release-keys
- sony/c6833/c6833:5.0.2/14.5.a.0.270/3305956307:user/release-keys
- sony/c6902/c6902:5.0.2/14.5.a.0.270/3750474323:user/release-keys
- sony/c6903/c6903:5.0.2/14.5.a.0.270/3750474323:user/release-keys
- sony/c6943/c6943:5.0.2/14.5.a.0.270/3750474323:user/release-keys
- sony/d5503/d5503:5.0.2/14.5.a.0.270/3750474323:user/release-keys
- sony/d5803/d5803:5.0.2/23.1.a.1.28/151083418:user/release-keys
- sony/d6503/d6503:5.0.2/23.1.a.1.28/151083418:user/release-keys
- sony/d6603/d6603:5.0.2/23.1.a.1.28/151083418:user/release-keys
- sony/d6616/d6616:5.0.2/23.1.c.0.385/498118161:user/release-keys
- sony/d6633/d6633:5.0.2/23.1.1.e.0.1/937646546:user/release-keys
- sony/d6653/d6653:5.0.2/23.1.a.1.28/151083418:user/release-keys
Comments
Post a Comment