问题
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?
回答1:
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
回答2:
Try to clean the solution and the Build it again. You might have problems with the versions of packages or dlls in your solution.
来源:https://stackoverflow.com/questions/33724592/package-android-support-v7-internal-view-menu-does-not-exist-cannot-find-symbol