Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

package android.support.v7.internal.view.menu does not exist: cannot find symbol class MenuBuilder

I just upgraded my support library from compile 'com.android.support:appcompat-v7:23.1.1' from compile 'com.android.support:appcompat-v7:23.1.0'.

It gave me this error:

package android.support.v7.internal.view.menu does not exist: cannot find symbol class MenuBuilder

I use popupmenu's in my app.

According to google, PopUpMenu inherits interface com.android.internal.view.menu.MenuBuilder.Callback and hence I got a list of errors when I gradle build my app: http://developer.android.com/reference/android/widget/PopupMenu.html

Does anyone know whether this interface is deprecated?

like image 568
Simon Avatar asked Nov 15 '15 20:11

Simon


1 Answers

They changed the package slightly, removing the 'internal'. You just need to change your imports:

android.support.v7.internal.view.menu.MenuBuilder

to

android.support.v7.view.menu.MenuBuilder

like image 151
Hugh Jeffner Avatar answered Nov 05 '22 11:11

Hugh Jeffner