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

Exception or error:

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?

How to solve:

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

###

Try to clean the solution and the Build it again. You might have problems with the versions of packages or dlls in your solution.

Leave a Reply

Your email address will not be published. Required fields are marked *