Сбой по org.xmlpull.v1.XmlPullParserException от android.graphics.drawable.Drawable.createFromXmlInner - PullRequest
0 голосов
/ 20 января 2019

В приложении возникает следующий сбой только на устройствах Samsung Galaxy Android 4.4.

android.content.res.Resources$NotFoundException: 
  at android.content.res.Resources.loadDrawable (Resources.java:3422)
  at android.content.res.Resources.getDrawable (Resources.java:1909)
  at android.support.v4.content.ContextCompat.getDrawable (ContextCompat.java:465)
  at android.support.v7.widget.AppCompatDrawableManager.getDrawable (AppCompatDrawableManager.java:203)
  at android.support.v7.widget.AppCompatDrawableManager.getDrawable (AppCompatDrawableManager.java:191)
  at android.support.v7.content.res.AppCompatResources.getDrawable (AppCompatResources.java:102)
  at android.support.v7.view.menu.MenuItemImpl.getIcon (MenuItemImpl.java:505)
  at android.support.design.internal.NavigationMenuItemView.initialize (NavigationMenuItemView.java:114)
  at android.support.design.internal.NavigationMenuPresenter$NavigationMenuAdapter.onBindViewHolder (NavigationMenuPresenter.java:442)
  at android.support.design.internal.NavigationMenuPresenter$NavigationMenuAdapter.onViewRecycled (NavigationMenuPresenter.java:361)
  at android.support.design.internal.NavigationMenuPresenter$NavigationMenuAdapter.onBindViewHolder (NavigationMenuPresenter.java:361)
  at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder (RecyclerView.java:6781)
  at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder (RecyclerView.java:6823)
  at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline (RecyclerView.java:5752)
  at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline (RecyclerView.java:6019)
  at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:5858)
  at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:5854)
  at android.support.v7.widget.LinearLayoutManager$LayoutState.next (LinearLayoutManager.java:2230)
  at android.support.v7.widget.LinearLayoutManager.layoutChunk (LinearLayoutManager.java:1557)
  at android.support.v7.widget.LinearLayoutManager.fill (LinearLayoutManager.java:1517)
  at android.support.v7.widget.LinearLayoutManager.onLayoutChildren (LinearLayoutManager.java:612)
  at android.support.v7.widget.RecyclerView.dispatchLayoutStep2 (RecyclerView.java:3924)
  at android.support.v7.widget.RecyclerView.onMeasure (RecyclerView.java:3336)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:310)
  at android.support.design.widget.NavigationView.onMeasure (NavigationView.java:245)
  at android.view.View.measure (View.java:17495)
  at android.support.v4.widget.DrawerLayout.onMeasure (DrawerLayout.java:1148)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:310)
  at android.support.v7.widget.ContentFrameLayout.onMeasure (ContentFrameLayout.java:143)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.LinearLayout.measureChildBeforeLayout (LinearLayout.java:1410)
  at android.widget.LinearLayout.measureVertical (LinearLayout.java:695)
  at android.widget.LinearLayout.onMeasure (LinearLayout.java:588)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:310)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.LinearLayout.measureChildBeforeLayout (LinearLayout.java:1410)
  at android.widget.LinearLayout.measureVertical (LinearLayout.java:695)
  at android.widget.LinearLayout.onMeasure (LinearLayout.java:588)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:310)
  at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure (PhoneWindow.java:2548)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewRootImpl.performMeasure (ViewRootImpl.java:2285)
  at android.view.ViewRootImpl.measureHierarchy (ViewRootImpl.java:1396)
  at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:1595)
  at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1254)
  at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:6637)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:814)
  at android.view.Choreographer.doCallbacks (Choreographer.java:614)
  at android.view.Choreographer.doFrame (Choreographer.java:584)
  at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:800)
  at android.os.Handler.handleCallback (Handler.java:733)
  at android.os.Handler.dispatchMessage (Handler.java:95)
  at android.os.Looper.loop (Looper.java:146)
  at android.app.ActivityThread.main (ActivityThread.java:5602)
  at java.lang.reflect.Method.invokeNative (Method.java)
  at java.lang.reflect.Method.invoke (Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1283)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1099)
  at dalvik.system.NativeStart.main (NativeStart.java)
Caused by: android.content.res.Resources$NotFoundException: 
  at android.content.res.Resources.loadDrawable (Resources.java:3422)
  at android.content.res.Resources.getDrawable (Resources.java:1909)
  at android.graphics.drawable.RotateDrawable.inflate (RotateDrawable.java:247)
  at android.graphics.drawable.Drawable.createFromXmlInner (Drawable.java:990)
  at android.graphics.drawable.Drawable.createFromXml (Drawable.java:930)
  at android.content.res.Resources.loadDrawable (Resources.java:3418)
  at android.content.res.Resources.getDrawable (Resources.java:1909)
  at android.support.v4.content.ContextCompat.getDrawable (ContextCompat.java:465)
  at android.support.v7.widget.AppCompatDrawableManager.getDrawable (AppCompatDrawableManager.java:203)
  at android.support.v7.widget.AppCompatDrawableManager.getDrawable (AppCompatDrawableManager.java:191)
  at android.support.v7.content.res.AppCompatResources.getDrawable (AppCompatResources.java:102)
  at android.support.v7.view.menu.MenuItemImpl.getIcon (MenuItemImpl.java:505)
  at android.support.design.internal.NavigationMenuItemView.initialize (NavigationMenuItemView.java:114)
  at android.support.design.internal.NavigationMenuPresenter$NavigationMenuAdapter.onBindViewHolder (NavigationMenuPresenter.java:442)
  at android.support.design.internal.NavigationMenuPresenter$NavigationMenuAdapter.onViewRecycled (NavigationMenuPresenter.java:361)
  at android.support.design.internal.NavigationMenuPresenter$NavigationMenuAdapter.onBindViewHolder (NavigationMenuPresenter.java:361)
  at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder (RecyclerView.java:6781)
  at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder (RecyclerView.java:6823)
  at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline (RecyclerView.java:5752)
  at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline (RecyclerView.java:6019)
  at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:5858)
  at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:5854)
  at android.support.v7.widget.LinearLayoutManager$LayoutState.next (LinearLayoutManager.java:2230)
  at android.support.v7.widget.LinearLayoutManager.layoutChunk (LinearLayoutManager.java:1557)
  at android.support.v7.widget.LinearLayoutManager.fill (LinearLayoutManager.java:1517)
  at android.support.v7.widget.LinearLayoutManager.onLayoutChildren (LinearLayoutManager.java:612)
  at android.support.v7.widget.RecyclerView.dispatchLayoutStep2 (RecyclerView.java:3924)
  at android.support.v7.widget.RecyclerView.onMeasure (RecyclerView.java:3336)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:310)
  at android.support.design.widget.NavigationView.onMeasure (NavigationView.java:245)
  at android.view.View.measure (View.java:17495)
  at android.support.v4.widget.DrawerLayout.onMeasure (DrawerLayout.java:1148)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:310)
  at android.support.v7.widget.ContentFrameLayout.onMeasure (ContentFrameLayout.java:143)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.LinearLayout.measureChildBeforeLayout (LinearLayout.java:1410)
  at android.widget.LinearLayout.measureVertical (LinearLayout.java:695)
  at android.widget.LinearLayout.onMeasure (LinearLayout.java:588)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:310)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.LinearLayout.measureChildBeforeLayout (LinearLayout.java:1410)
  at android.widget.LinearLayout.measureVertical (LinearLayout.java:695)
  at android.widget.LinearLayout.onMeasure (LinearLayout.java:588)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:310)
  at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure (PhoneWindow.java:2548)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewRootImpl.performMeasure (ViewRootImpl.java:2285)
  at android.view.ViewRootImpl.measureHierarchy (ViewRootImpl.java:1396)
  at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:1595)
  at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1254)
  at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:6637)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:814)
  at android.view.Choreographer.doCallbacks (Choreographer.java:614)
  at android.view.Choreographer.doFrame (Choreographer.java:584)
  at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:800)
  at android.os.Handler.handleCallback (Handler.java:733)
  at android.os.Handler.dispatchMessage (Handler.java:95)
  at android.os.Looper.loop (Looper.java:146)
  at android.app.ActivityThread.main (ActivityThread.java:5602)
  at java.lang.reflect.Method.invokeNative (Method.java)
  at java.lang.reflect.Method.invoke (Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1283)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1099)
  at dalvik.system.NativeStart.main (NativeStart.java)
Caused by: org.xmlpull.v1.XmlPullParserException: 
  at android.graphics.drawable.Drawable.createFromXmlInner (Drawable.java:986)
  at android.graphics.drawable.Drawable.createFromXml (Drawable.java:930)
  at android.content.res.Resources.loadDrawable (Resources.java:3418)
  at android.content.res.Resources.getDrawable (Resources.java:1909)
  at android.graphics.drawable.RotateDrawable.inflate (RotateDrawable.java:247)
  at android.graphics.drawable.Drawable.createFromXmlInner (Drawable.java:990)
  at android.graphics.drawable.Drawable.createFromXml (Drawable.java:930)
  at android.content.res.Resources.loadDrawable (Resources.java:3418)
  at android.content.res.Resources.getDrawable (Resources.java:1909)
  at android.support.v4.content.ContextCompat.getDrawable (ContextCompat.java:465)
  at android.support.v7.widget.AppCompatDrawableManager.getDrawable (AppCompatDrawableManager.java:203)
  at android.support.v7.widget.AppCompatDrawableManager.getDrawable (AppCompatDrawableManager.java:191)
  at android.support.v7.content.res.AppCompatResources.getDrawable (AppCompatResources.java:102)
  at android.support.v7.view.menu.MenuItemImpl.getIcon (MenuItemImpl.java:505)
  at android.support.design.internal.NavigationMenuItemView.initialize (NavigationMenuItemView.java:114)
  at android.support.design.internal.NavigationMenuPresenter$NavigationMenuAdapter.onBindViewHolder (NavigationMenuPresenter.java:442)
  at android.support.design.internal.NavigationMenuPresenter$NavigationMenuAdapter.onViewRecycled (NavigationMenuPresenter.java:361)
  at android.support.design.internal.NavigationMenuPresenter$NavigationMenuAdapter.onBindViewHolder (NavigationMenuPresenter.java:361)
  at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder (RecyclerView.java:6781)
  at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder (RecyclerView.java:6823)
  at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline (RecyclerView.java:5752)
  at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline (RecyclerView.java:6019)
  at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:5858)
  at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:5854)
  at android.support.v7.widget.LinearLayoutManager$LayoutState.next (LinearLayoutManager.java:2230)
  at android.support.v7.widget.LinearLayoutManager.layoutChunk (LinearLayoutManager.java:1557)
  at android.support.v7.widget.LinearLayoutManager.fill (LinearLayoutManager.java:1517)
  at android.support.v7.widget.LinearLayoutManager.onLayoutChildren (LinearLayoutManager.java:612)
  at android.support.v7.widget.RecyclerView.dispatchLayoutStep2 (RecyclerView.java:3924)
  at android.support.v7.widget.RecyclerView.onMeasure (RecyclerView.java:3336)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:310)
  at android.support.design.widget.NavigationView.onMeasure (NavigationView.java:245)
  at android.view.View.measure (View.java:17495)
  at android.support.v4.widget.DrawerLayout.onMeasure (DrawerLayout.java:1148)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:310)
  at android.support.v7.widget.ContentFrameLayout.onMeasure (ContentFrameLayout.java:143)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.LinearLayout.measureChildBeforeLayout (LinearLayout.java:1410)
  at android.widget.LinearLayout.measureVertical (LinearLayout.java:695)
  at android.widget.LinearLayout.onMeasure (LinearLayout.java:588)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:310)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.LinearLayout.measureChildBeforeLayout (LinearLayout.java:1410)
  at android.widget.LinearLayout.measureVertical (LinearLayout.java:695)
  at android.widget.LinearLayout.onMeasure (LinearLayout.java:588)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:5363)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:310)
  at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure (PhoneWindow.java:2548)
  at android.view.View.measure (View.java:17495)
  at android.view.ViewRootImpl.performMeasure (ViewRootImpl.java:2285)
  at android.view.ViewRootImpl.measureHierarchy (ViewRootImpl.java:1396)
  at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:1595)
  at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1254)
  at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:6637)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:814)
  at android.view.Choreographer.doCallbacks (Choreographer.java:614)
  at android.view.Choreographer.doFrame (Choreographer.java:584)
  at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:800)
  at android.os.Handler.handleCallback (Handler.java:733)
  at android.os.Handler.dispatchMessage (Handler.java:95)
  at android.os.Looper.loop (Looper.java:146)
  at android.app.ActivityThread.main (ActivityThread.java:5602)
  at java.lang.reflect.Method.invokeNative (Method.java)
  at java.lang.reflect.Method.invoke (Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1283)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1099)
  at dalvik.system.NativeStart.main (NativeStart.java)

Трассировка стека не указывает на какой-либо код приложения, поэтому мне интересно, кто-нибудь может предложить подсказку о причине.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...