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

Stack Overflow | Tasd Aqwe | 4 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    MenuPopupHelper cannot be used without an anchor in CreateOptionsMenu

    Stack Overflow | 4 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 months 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

    PopUp Menu Inflate Exception in Recycler view

    Stack Overflow | 2 months ago | AndroidFreak
    ndroid.view.InflateException: Binary XML file line #17: Failed to resolve attribute at index 6: TypedValue{t=0x3/d=0x379 "res/drawable/ic_menu_moreoverflow_material.xml" a=1 r=0x10803d9}
  6. 0

    Click Icon on action bar to Popup menu

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

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