我已經實現與4.2.2手機上https://code.google.com/p/android/issues/detail?id=78377上市這一問題的許多解決方案之一後,但現在我已經更新以支持工具23,問題已經恢復。如果你看一下這個問題報告,你會看到很多人在更新後遇到同樣的問題。在NoClassDefFoundError: android.support.v7.internal.view.menu.MenuBuilder該解決方案還不能工作,因爲他們來自https://code.google.com/p/android/issues/detail?id=78377再次得到java.lang.NoClassDefFoundError:android.support.v7.internal.view.menu.i更新到支持工具23
這是我收到的例外:
java.lang.NoClassDefFoundError: android.support.v7.internal.view.menu.i
at android.support.v7.widget.ActionMenuView.getMenu(ActionMenuView.java:643)
at android.support.v7.widget.Toolbar.ensureMenu(Toolbar.java:876)
at android.support.v7.widget.Toolbar.getMenu(Toolbar.java:847)
at android.support.v7.internal.widget.ToolbarWidgetWrapper.getMenu(ToolbarWidgetWrapper.java:702)
at android.support.v7.internal.app.ToolbarActionBar.getMenu(ToolbarActionBar.java:583)
at android.support.v7.internal.app.ToolbarActionBar.populateOptionsMenu(ToolbarActionBar.java:441)
at android.support.v7.internal.app.ToolbarActionBar$1.run(ToolbarActionBar.java:65)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:776)
at android.view.Choreographer.doCallbacks(Choreographer.java:579)
at android.view.Choreographer.doFrame(Choreographer.java:547)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:762)
at android.os.Handler.handleCallback(Handler.java:800)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5391)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(NativeStart.java)
我的ProGuard有這樣的:
-keep class !android.support.v7.internal.view.menu.**,android.support.** {*;}
任何解決方案?得到很多用戶的投訴。
我也仍然有增加,經過同樣的問題。運行4.2.2的設備 – Mikey