android.content.res.Resources$NotFoundException

unknown resource 0

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2419

  • unknown resource 0
  • via Google Groups by Colin Miller, 1 year ago
    unknown resource 0
  • Stack trace

    • android.content.res.Resources$NotFoundException: unknown resource 0 at org.robolectric.shadows.ShadowAssetManager.getAndResolve(ShadowAssetManager.java:384) at org.robolectric.shadows.ShadowAssetManager.getResourceValue(ShadowAssetManager.java:129) at android.content.res.AssetManager.getResourceValue(AssetManager.java) at android.content.res.Resources.getValue(Resources.java:1347) at android.support.v7.widget.AppCompatDrawableManager.createDrawableIfNeeded(AppCompatDrawableManager.java:226) at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:199) at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:192) at android.support.v7.widget.ShareActionProvider.onCreateActionView(ShareActionProvider.java:229) at android.support.v4.view.ActionProvider.onCreateActionView(ActionProvider.java:166) at android.support.v7.view.menu.MenuItemImpl.getActionView(MenuItemImpl.java:630) at android.support.v7.widget.ActionMenuPresenter.getItemView(ActionMenuPresenter.java:190) at android.support.v7.widget.ActionMenuPresenter.flagActionItems(ActionMenuPresenter.java:451) at android.support.v7.view.menu.MenuBuilder.flagActionItems(MenuBuilder.java:1138) at android.support.v7.view.menu.BaseMenuPresenter.updateMenuView(BaseMenuPresenter.java:91) at android.support.v7.widget.ActionMenuPresenter.updateMenuView(ActionMenuPresenter.java:229) at android.support.v7.view.menu.MenuBuilder.dispatchPresenterUpdate(MenuBuilder.java:284) at android.support.v7.view.menu.MenuBuilder.onItemsChanged(MenuBuilder.java:1030) at android.support.v7.view.menu.MenuBuilder.startDispatchingItemsChanged(MenuBuilder.java:1053) at android.support.v7.app.ToolbarActionBar.populateOptionsMenu(ToolbarActionBar.java:460) at android.support.v7.app.ToolbarActionBar$1.run(ToolbarActionBar.java:61) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago