android.content.res.Resources$NotFoundException: unknown resource 0

Stack Overflow | Brad | 4 months ago
  1. 0

    Resource not found for ShareActionProvider with AppCompat 22.1.0

    GitHub | 2 years ago | hidroh
    android.content.res.Resources$NotFoundException: unknown resource 0
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    ShadowDialogFragment?

    Google Groups | 3 years ago | Colin Miller
    android.content.res.Resources$NotFoundException: unknown resource 0
  4. 0

    unknown resource 0 with Robolectric

    GitHub | 6 months ago | dieze
    android.content.res.Resources$NotFoundException: unknown resource 0

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. android.content.res.Resources$NotFoundException

      unknown resource 0

      at org.robolectric.shadows.ShadowAssetManager.getAndResolve()
    2. Roboelectric HTTP
      ShadowAssetManager.getResourceValue
      1. org.robolectric.shadows.ShadowAssetManager.getAndResolve(ShadowAssetManager.java:384)
      2. org.robolectric.shadows.ShadowAssetManager.getResourceValue(ShadowAssetManager.java:129)
      2 frames
    3. Android Platform
      Resources.getValue
      1. android.content.res.AssetManager.getResourceValue(AssetManager.java)
      2. android.content.res.Resources.getValue(Resources.java:1347)
      2 frames
    4. Android v7
      ShareActionProvider.onCreateActionView
      1. android.support.v7.widget.AppCompatDrawableManager.createDrawableIfNeeded(AppCompatDrawableManager.java:226)
      2. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:199)
      3. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:192)
      4. android.support.v7.widget.ShareActionProvider.onCreateActionView(ShareActionProvider.java:229)
      4 frames
    5. Android Support v4
      ActionProvider.onCreateActionView
      1. android.support.v4.view.ActionProvider.onCreateActionView(ActionProvider.java:166)
      1 frame
    6. android.support.v7
      MenuItemImpl.getActionView
      1. android.support.v7.view.menu.MenuItemImpl.getActionView(MenuItemImpl.java:630)
      1 frame
    7. Android v7
      ActionMenuPresenter.flagActionItems
      1. android.support.v7.widget.ActionMenuPresenter.getItemView(ActionMenuPresenter.java:190)
      2. android.support.v7.widget.ActionMenuPresenter.flagActionItems(ActionMenuPresenter.java:451)
      2 frames
    8. android.support.v7
      BaseMenuPresenter.updateMenuView
      1. android.support.v7.view.menu.MenuBuilder.flagActionItems(MenuBuilder.java:1138)
      2. android.support.v7.view.menu.BaseMenuPresenter.updateMenuView(BaseMenuPresenter.java:91)
      2 frames
    9. Android v7
      ActionMenuPresenter.updateMenuView
      1. android.support.v7.widget.ActionMenuPresenter.updateMenuView(ActionMenuPresenter.java:229)
      1 frame
    10. android.support.v7
      MenuBuilder.startDispatchingItemsChanged
      1. android.support.v7.view.menu.MenuBuilder.dispatchPresenterUpdate(MenuBuilder.java:284)
      2. android.support.v7.view.menu.MenuBuilder.onItemsChanged(MenuBuilder.java:1030)
      3. android.support.v7.view.menu.MenuBuilder.startDispatchingItemsChanged(MenuBuilder.java:1053)
      3 frames
    11. Android v7
      ToolbarActionBar$1.run
      1. android.support.v7.app.ToolbarActionBar.populateOptionsMenu(ToolbarActionBar.java:460)
      2. android.support.v7.app.ToolbarActionBar$1.run(ToolbarActionBar.java:61)
      2 frames
    12. Android Platform
      Handler.dispatchMessage
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      2 frames