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

Stack Overflow | Tasd Aqwe | 2 weeks ago
  1. 0

    MenuPopupHelper cannot be used without an anchor in CreateOptionsMenu

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

    Android - Can not use popup in Fragment

    Stack Overflow | 3 years ago | Vijay
    java.lang.IllegalStateException: MenuPopupHelper cannot be used without an anchor
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Implementing popUp menu with appcompat 7 library

    Stack Overflow | 3 years ago | nitrobuster
    java.lang.RuntimeException: Binary XML file line #17: You must supply a layout_height attribute.
  6. 0

    Unable to show popup menu in Adapter in android

    Stack Overflow | 3 months ago | Wai Yan Hein
    android.view.InflateException: Binary XML file line #17: Failed to resolve attribute at index 6: TypedValue{t=0x1d/d=0xff5c5cff a=1 r=0x106002f}

  1. filpgame 2 times, last 2 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