Cannot find resource res/drawable/abs__item_background_holo_dark.xml

418 views
Skip to first unread message

Andrii Kovalov

unread,
Jul 18, 2012, 5:41:21 AM7/18/12
to actionba...@googlegroups.com
Hi all,

I have following issue with action bar:
Personally I can't reproduce it, but I have following stacktrace from android dev console. Any thoughts?

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx/com.xxx.activity.phone.SplashScreen}: android.view.InflateException: Binary XML file line #31: Error inflating class com.actionbarsherlock.internal.widget.ActionBarView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2705)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2721)
at android.app.ActivityThread.access$2300(ActivityThread.java:132)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4669)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:876)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #31: Error inflating class com.actionbarsherlock.internal.widget.ActionBarView
at android.view.LayoutInflater.createView(LayoutInflater.java:513)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
at com.actionbarsherlock.internal.ActionBarSherlockCompat.generateLayout(ActionBarSherlockCompat.java:1049)
at com.actionbarsherlock.internal.ActionBarSherlockCompat.installDecor(ActionBarSherlockCompat.java:919)
at com.actionbarsherlock.internal.ActionBarSherlockCompat.setContentView(ActionBarSherlockCompat.java:853)
at com.actionbarsherlock.app.SherlockActivity.setContentView(SherlockActivity.java:218)
at com.xxx.activity.phone.SplashScreen.onCreate(SplashScreen.java:207)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2669)
... 11 more
Caused by: java.lang.reflect.InvocationTargetException
at com.actionbarsherlock.internal.widget.ActionBarView.<init>(ActionBarView.java:232)
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
at android.view.LayoutInflater.createView(LayoutInflater.java:500)
... 24 more
Caused by: android.view.InflateException: Binary XML file line #22: Error inflating class android.widget.ImageView
at android.view.LayoutInflater.createView(LayoutInflater.java:513)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
... 28 more
Caused by: java.lang.reflect.InvocationTargetException
at android.widget.ImageView.<init>(ImageView.java:108)
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
at android.view.LayoutInflater.createView(LayoutInflater.java:500)
... 33 more
Caused by: android.content.res.Resources$NotFoundException: File res/drawable/abs__item_background_holo_dark.xml from drawable resource ID #0x7f020096
at android.content.res.Resources.loadDrawable(Resources.java:1697)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.widget.ImageView.<init>(ImageView.java:118)
... 37 more
Caused by: android.content.res.Resources$NotFoundException: File res/drawable/abs__item_background_holo_dark.xml from xml type drawable resource ID #0x7f020096
at android.content.res.Resources.loadXmlResourceParser(Resources.java:1916)
at android.content.res.Resources.loadDrawable(Resources.java:1692)
... 39 more
Caused by: java.io.FileNotFoundException: res/drawable/abs__item_background_holo_dark.xml
at android.content.res.AssetManager.openXmlAssetNative(Native Method)
at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:485)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:1898)
... 40 morecoupo

Michael Smith

unread,
Aug 23, 2012, 7:17:00 AM8/23/12
to actionba...@googlegroups.com
Any luck with this yet?

Jonathan Steele

unread,
Aug 23, 2012, 3:17:01 PM8/23/12
to actionba...@googlegroups.com
Do you use Eclipse? if yes, Check to see that file exists in Eclipse.

Andrii Kovalov

unread,
Oct 31, 2012, 10:56:28 AM10/31/12
to actionba...@googlegroups.com
Still no luck with it... I do not use Eclipse, but it's this resource file in correct location... so I can't imaging why for some devices it's missing, it's in drawable folder so there shouldn't be any device specific issues...

Markus Peter

unread,
Jul 25, 2013, 3:35:27 PM7/25/13
to actionba...@googlegroups.com
On Wednesday, July 18, 2012 11:41:21 AM UTC+2, Andrii Kovalov wrote:
Hi all,

I have following issue with action bar:
Personally I can't reproduce it, but I have following stacktrace from android dev console. Any thoughts?

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx/com.xxx.activity.phone.SplashScreen}: android.view.InflateException: Binary XML file line #31: Error inflating class com.actionbarsherlock.internal.widget.ActionBarView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2705)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2721)
at android.app.ActivityThread.access$2300(ActivityThread.java:132)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4669)

Have you found out the reason or even a work-around for that? I experience a handful of crashes like that myself with my app from users with a phone called "U8655-1" and would like to fix them, if possible.

Kind Regards,
Markus Peter

Reply all
Reply to author
Forward
0 new messages