java.lang.IllegalStateException: MenuPopupHelper cannot be used without an anchor

Stack Overflow | Tasd Aqwe | 2 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

    MenuPopupHelper cannot be used without an anchor in CreateOptionsMenu

    Stack Overflow | 2 months ago | Tasd Aqwe
    java.lang.IllegalStateException: MenuPopupHelper cannot be used without an anchor
  2. 0

    Popup menu on click of action bar Icon

    Stack Overflow | 3 weeks ago | user2308699
    java.lang.IllegalStateException: MenuPopupHelper cannot be used without an anchor
  3. 0

    Android - Can not use popup in Fragment

    Stack Overflow | 3 years ago | Vijay
    java.lang.IllegalStateException: MenuPopupHelper cannot be used without an anchor
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Click Icon on action bar to Popup menu

    Stack Overflow | 3 weeks ago | user2308699
    java.lang.RuntimeException: Failed to resolve attribute at index 6
  6. 0

    Getting a run time error in popup menu "InvocationTargetException"

    Stack Overflow | 2 years ago
    java.lang.IllegalStateException: Could not execute method of the activity

  1. filpgame 2 times, last 4 months ago
2 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. java.lang.IllegalStateException

    MenuPopupHelper cannot be used without an anchor

    at android.support.v7.view.menu.MenuPopupHelper.show()
  2. android.support.v7
    MenuPopupHelper.show
    1. android.support.v7.view.menu.MenuPopupHelper.show(MenuPopupHelper.java:142)
    1 frame
  3. Android v7
    PopupMenu.show
    1. android.support.v7.widget.PopupMenu.show(PopupMenu.java:233)
    1 frame
  4. com.mypackage.testexample
    GuestActivity.onOptionsItemSelected
    1. com.mypackage.testexample.views.MyPopupMenu.display(MyPopupMenu.java:27)
    2. com.mypackage.testexample.controllers.lite.GuestActivity.onOptionsItemSelected(GuestActivity.java:90)
    2 frames