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'
.
我刚刚升级了我的支持库,从编译“com.android.support:appcompat-v7 . 23.1.1”从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
菜单不存在:找不到符号类MenuBuilder。
I use popupmenu's in my app.
我在app中使用popupmenu。
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
根据谷歌,PopUpMenu继承了接口com.android.int .menu. menubuilder.callback,因此当我在构建我的应用程序时,我得到了一个错误列表:http://developer.android.com/reference/android/widget/PopupMenu.html。
Does anyone know whether this interface is deprecated?
是否有人知道该接口是否已被弃用?
2 个解决方案
#1
41
They changed the package slightly, removing the 'internal'. You just need to change your imports:
他们稍微改变了包装,去掉了“内部”。你只需要改变你的进口:
android.support.v7.internal.view.menu.MenuBuilder
android.support.v7.internal.view.menu.MenuBuilder
to
来
android.support.v7.view.menu.MenuBuilder
android.support.v7.view.menu.MenuBuilder
#2
0
Try to clean the solution and the Build it again. You might have problems with the versions of packages or dlls in your solution.
试着清理解决方案,然后重新构建它。在解决方案中,您可能会遇到包或dll的版本问题。
#1
41
They changed the package slightly, removing the 'internal'. You just need to change your imports:
他们稍微改变了包装,去掉了“内部”。你只需要改变你的进口:
android.support.v7.internal.view.menu.MenuBuilder
android.support.v7.internal.view.menu.MenuBuilder
to
来
android.support.v7.view.menu.MenuBuilder
android.support.v7.view.menu.MenuBuilder
#2
0
Try to clean the solution and the Build it again. You might have problems with the versions of packages or dlls in your solution.
试着清理解决方案,然后重新构建它。在解决方案中,您可能会遇到包或dll的版本问题。