我收到此错误报告,该报告无法显示应用中的来源。它似乎是外部的。我有什么可以做的吗?
android.content.res.Resources$NotFoundException: Resource ID #0xffffffff
at android.content.res.Resources.getValue(Resources.java)
at android.content.res.MiuiResources.getValue(MiuiResources.java:87)
at android.content.res.Resources.getColor(Resources.java)
at miui.util.UiUtils.getColor(UiUtils.java:127)
at com.android.internal.view.menu.ListMenuItemView$Injector.checkTextColor(ListMenuItemView.java:104)
at com.android.internal.view.menu.ListMenuItemView.setCheckable(ListMenuItemView.java)
at com.android.internal.view.menu.ListMenuItemView.initialize(ListMenuItemView.java)
at com.android.internal.view.menu.ListMenuPresenter$MenuAdapter.getView(ListMenuPresenter.java)
at android.widget.AbsListView.obtainView(AbsListView.java)
at android.widget.ListView.measureHeightOfChildren(ListView.java)
at android.widget.ListView.onMeasure(ListView.java)
at android.view.View.measure(View.java)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java)
at android.widget.FrameLayout.onMeasure(FrameLayout.java)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java)
at android.view.View.measure(View.java)
at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java)
at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java)
at android.view.Choreographer.doCallbacks(Choreographer.java)
at android.view.Choreographer.doFrame(Choreographer.java)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java)
at android.os.Handler.handleCallback(Handler.java)
at android.os.Handler.dispatchMessage(Handler.java)
at android.os.Looper.loop(Looper.java)
at android.app.ActivityThread.main(ActivityThread.java)
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)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
at dalvik.system.NativeStart.main(Native Method)
编辑:找出它的外部而不是我的应用。我现在的问题是如何阻止人们给我一颗星呢?
答案 0 :(得分:1)
我和使用miui的小米设备有同样的问题。好像问题出在miui里面。但是我找到了一个解决方法:
使用appcompat-v7
库切换到Material Design时,问题就消失了。以前,应用主题基于@android:style/Theme.Holo
,现在它继承自@style/Theme.AppCompat.Light
并且有效。
如果您不想使用Material Design,也许这会给您一些线索(未经验证): http://en.miui.com/thread-13394-1-1.html
我无法确认,但有人在猜测:
我认为,问题在于,miui无法使用属性android处理菜单:checkable =" true"