java.lang.NoSuchMethodError: android.graphics.drawable.VectorDrawable_Delegate.nCreateTreeFromCopy(JJ)J

google.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.

Root Cause Analysis

  1. java.lang.NoSuchMethodError

    android.graphics.drawable.VectorDrawable_Delegate.nCreateTreeFromCopy(JJ)J

    at android.graphics.drawable.VectorDrawable.nCreateTreeFromCopy()
  2. Android Platform
    ActionMenuPresenter$OverflowMenuButton.<init>
    1. android.graphics.drawable.VectorDrawable.nCreateTreeFromCopy(VectorDrawable.java)
    2. android.graphics.drawable.VectorDrawable.access$400(VectorDrawable.java:204)
    3. android.graphics.drawable.VectorDrawable$VectorDrawableState.createNativeTreeFromCopy(VectorDrawable.java:837)
    4. android.graphics.drawable.VectorDrawable$VectorDrawableState.<init>(VectorDrawable.java:812)
    5. android.graphics.drawable.VectorDrawable.mutate(VectorDrawable.java:268)
    6. android.graphics.drawable.VectorDrawable.onStateChange(VectorDrawable.java:392)
    7. android.graphics.drawable.VectorDrawable.mutate(VectorDrawable.java:268)
    8. android.graphics.drawable.Drawable.setState(Drawable.java:732)
    9. android.graphics.drawable.VectorDrawable.onStateChange(VectorDrawable.java:392)
    10. android.widget.ImageView.updateDrawable(ImageView.java:927)
    11. android.graphics.drawable.Drawable.setState(Drawable.java:732)
    12. android.widget.ImageView.setImageDrawable(ImageView.java:509)
    13. android.widget.ImageView.updateDrawable(ImageView.java:927)
    14. android.widget.ImageView.<init>(ImageView.java:159)
    15. android.widget.ImageView.setImageDrawable(ImageView.java:509)
    16. android.widget.ImageButton.<init>(ImageButton.java:84)
    17. android.widget.ImageView.<init>(ImageView.java:159)
    18. android.widget.ImageButton.<init>(ImageButton.java:80)
    19. android.widget.ImageButton.<init>(ImageButton.java:84)
    20. android.widget.ActionMenuPresenter$OverflowMenuButton.<init>(ActionMenuPresenter.java:841)
    21. android.widget.ImageButton.<init>(ImageButton.java:80)
    22. android.widget.ActionMenuPresenter.initForMenu(ActionMenuPresenter.java:153)
    23. android.widget.ActionMenuPresenter$OverflowMenuButton.<init>(ActionMenuPresenter.java:841)
    23 frames
  3. Android
    MenuBuilder.addMenuPresenter
    1. com.android.internal.view.menu.MenuBuilder.addMenuPresenter(MenuBuilder.java:229)
    1 frame
  4. Android Platform
    ActionMenuView.getMenu
    1. android.widget.ActionMenuPresenter.initForMenu(ActionMenuPresenter.java:153)
    2. android.widget.ActionMenuView.getMenu(ActionMenuView.java:646)
    2 frames
  5. Android
    MenuBuilder.addMenuPresenter
    1. com.android.internal.view.menu.MenuBuilder.addMenuPresenter(MenuBuilder.java:229)
    1 frame
  6. Android Platform
    Toolbar.getMenu
    1. android.widget.Toolbar.ensureMenu(Toolbar.java:1026)
    2. android.widget.ActionMenuView.getMenu(ActionMenuView.java:646)
    3. android.widget.Toolbar.getMenu(Toolbar.java:997)
    4. android.widget.Toolbar.ensureMenu(Toolbar.java:1026)
    5. android.widget.Toolbar.getMenu(Toolbar.java:997)
    5 frames
  7. com.android.layoutlib
    Bridge.createSession
    1. com.android.layoutlib.bridge.bars.FrameworkActionBarWrapper$ToolbarWrapper.getMenuBuilder(FrameworkActionBarWrapper.java:222)
    2. com.android.layoutlib.bridge.bars.FrameworkActionBarWrapper.inflateMenus(FrameworkActionBarWrapper.java:127)
    3. com.android.layoutlib.bridge.bars.FrameworkActionBarWrapper$ToolbarWrapper.inflateMenus(FrameworkActionBarWrapper.java:199)
    4. com.android.layoutlib.bridge.bars.FrameworkActionBar.<init>(FrameworkActionBar.java:85)
    5. com.android.layoutlib.bridge.impl.Layout.createActionBar(Layout.java:242)
    6. com.android.layoutlib.bridge.impl.Layout.<init>(Layout.java:152)
    7. com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:300)
    8. com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429)
    8 frames
  8. com.android.tools.sdk-common
    LayoutLibrary.createSession
    1. com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:350)
    1 frame