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

安稳与你 提交于 2019-12-09 07:51:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!