java.lang.NumberFormatException: Invalid int: "res/drawable-xhdpi-v4/ic_action_share.png"

itguai.com | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    java.lang.NumberFormatException: Invalid int: "res/drawable-hdpi-v4/ic_action_share.png"

    Stack Overflow | 2 years ago | Maksim Diakonov
    java.lang.NumberFormatException: Invalid int: "res/drawable-xhdpi-v4/ic_action_share.png"
  2. 0

    Crashes for Jelly Bean devices

    GitHub | 10 months ago | sungjin0213
    android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    NumberFormatException while inflating layout

    GitHub | 3 years ago | blinskey
    android.view.InflateException: Binary XML file line #35: Error inflating class com.benlinskey.greekreference.GreekTextView
  5. 0

    java.lang.NumberFormatException: Invalid int: "@16974053"

    GitHub | 4 years ago | gflarity
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.avidtap.pos/com.avidtap.pos.MainActivity}: java.lang.NumberFormatException: Invalid int: "@16974053"
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. java.lang.NumberFormatException

    Invalid int: "res/drawable-xhdpi-v4/ic_action_share.png"

    at java.lang.Integer.invalidInt()
  2. Java RT
    Integer.parseInt
    1. java.lang.Integer.invalidInt(Integer.java:138)
    2. java.lang.Integer.parse(Integer.java:375)
    3. java.lang.Integer.parseInt(Integer.java:366)
    3 frames
  3. Android Platform
    ViewGroup.<init>
    1. com.android.internal.util.XmlUtils.convertValueToInt(XmlUtils.java:123)
    2. android.content.res.TypedArray.getInt(TypedArray.java:254)
    3. android.view.View.<init>(View.java:3561)
    4. android.view.ViewGroup.<init>(ViewGroup.java:432)
    4 frames
  4. com.example.trace
    ShareActionProvider.onCreateActionView
    1. com.example.trace.CustomShareActionProvider.ActivityChooserView.<init>(Unknown Source)
    2. com.example.trace.CustomShareActionProvider.ActivityChooserView.<init>(Unknown Source)
    3. com.example.trace.CustomShareActionProvider.ActivityChooserView.<init>(Unknown Source)
    4. com.example.trace.CustomShareActionProvider.ShareActionProvider.onCreateActionView(Unknown Source)
    4 frames
  5. Android Support v4
    j.onCreateActionView
    1. android.support.v4.view.j.onCreateActionView(Unknown Source)
    1 frame
  6. Android v7
    y.onCreateActionView
    1. android.support.v7.internal.view.menu.y.onCreateActionView(Unknown Source)
    1 frame
  7. Android
    MenuItemImpl.getActionView
    1. com.android.internal.view.menu.MenuItemImpl.getActionView(MenuItemImpl.java:580)
    1 frame
  8. Android v7
    t.getActionView
    1. android.support.v7.internal.view.menu.t.getActionView(Unknown Source)
    1 frame
  9. Android Support v4
    y.a
    1. android.support.v4.view.y.a(Unknown Source)
    1 frame
  10. com.example.trace
    p.a
    1. com.example.trace.p.a(Unknown Source)
    1 frame
  11. Android Support v4
    h.onCreatePanelMenu
    1. android.support.v4.app.Fragment.b(Unknown Source)
    2. android.support.v4.app.n.a(Unknown Source)
    3. android.support.v4.app.h.onCreatePanelMenu(Unknown Source)
    3 frames
  12. android.support.v7
    n.onCreatePanelMenu
    1. android.support.v7.a.g.a(Unknown Source)
    2. android.support.v7.a.m.a(Unknown Source)
    3. android.support.v7.a.g.onCreatePanelMenu(Unknown Source)
    4. android.support.v7.a.n.onCreatePanelMenu(Unknown Source)
    4 frames
  13. Android
    PhoneWindow.invalidatePanelMenu
    1. com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:445)
    2. com.android.internal.policy.impl.PhoneWindow.invalidatePanelMenu(PhoneWindow.java:819)
    2 frames
  14. Android Platform
    Activity.invalidateOptionsMenu
    1. android.app.Activity.invalidateOptionsMenu(Activity.java:2690)
    1 frame