java.lang.IllegalStateException

MenuPopupHelper cannot be used without an anchor


Solutions on the web8141

Solution icon of stackoverflow
MenuPopupHelper cannot be used without an anchor

Solution icon of stackoverflow
via Stack Overflow by Vijay
, 1 year ago
MenuPopupHelper cannot be used without an anchor

Solution icon of stackoverflow
via Stack Overflow by user2308699
, 5 months ago
MenuPopupHelper cannot be used without an anchor

Solution icon of apache
via syncope-user by Bruno SyncopeDev, 1 year ago
Cannot run without an instance id.

Solution icon of web
via glazedlists.com by Unknown author, 1 year ago
Cannot commit without an event in progress

Solution icon of web
Cannot run without an instance id.

Solution icon of web
via marklogic.com by Unknown author, 1 year ago
Cannot commit without an active transaction

Solution icon of web
Cannot run without an instance id.

Solution icon of web
via vmware.com by Unknown author, 1 year ago
Cannot run without an instance id.

Solution icon of web
Cannot run without an instance id.

Stack trace

  • java.lang.IllegalStateException: MenuPopupHelper cannot be used without an anchor at android.support.v7.view.menu.MenuPopupHelper.show(MenuPopupHelper.java:142) at android.support.v7.widget.PopupMenu.show(PopupMenu.java:233) at com.mypackage.testexample.views.MyPopupMenu.display(MyPopupMenu.java:27) at com.mypackage.testexample.controllers.lite.GuestActivity.onOptionsItemSelected(GuestActivity.java:90)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
5 times, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago