我已使用appcompat-v7
在popupmenu
中实现listView items
我的应用在大多数设备上运行良好,但其中一些特别是SAMSUNG-SM-G730A with android 4.2.2
在运行时抛出下面提到的错误
import android.support.v7.widget.PopupMenu
PopupMenu popup = new PopupMenu(context, view);
popup.getMenuInflater().inflate(R.menu.popup, popup.getMenu());
错误记录
java.lang.NoClassDefFoundError: android.support.v7.internal.view.menu.MenuBuilder
at android.support.v7.widget.PopupMenu.(SourceFile:67)
at bby.a(SourceFile:270)
at bby.a(SourceFile:268)
at bcd.onClick(SourceFile:253)
at android.view.View.performClick(View.java:4437)
at android.view.View$PerformClick.run(View.java:18365)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5285)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
http://developer.samsung.com/forum/board/thread/view.do?boardName=General&messageId=248142