[英]android.content.res.Resources$NotFoundException: Resource ID #0xffffffff
I get this error report that doesn't show where it is coming from in the app. 我收到此错误报告,但未显示它来自应用程序的位置。 It seems to be external.
它似乎是外部的。 Is there anything I can do about it?
有什么我可以做的吗?
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)
edit: Figured out its external and not from my app. 编辑:找出其外部,而不是从我的应用程序。 My question now is what can I do about it to stop people giving me 1 star?
现在我的问题是,要阻止人们给我1星,我该怎么办?
I had the same issue with Xiaomi devices using miui. 使用miui的小米设备也存在相同的问题。 It seems like the issue lies inside miui.
看来问题出在miui内部。 But I've found a workaround:
但是我找到了一种解决方法:
The problem disappeared for me when switching to Material Design using the appcompat-v7
library. 使用
appcompat-v7
库切换到Material Design时,该问题对我而言消失了。 Previously the app theme was based on @android:style/Theme.Holo
, now it is inheriting from @style/Theme.AppCompat.Light
and it works. 以前,应用程序主题基于
@android:style/Theme.Holo
,现在它是从@style/Theme.AppCompat.Light
继承而来的。
If you don't want to use Material Design, maybe this will give you some clue (not verified): http://en.miui.com/thread-13394-1-1.html 如果您不想使用Material Design,则可能会给您一些线索(未验证): http : //en.miui.com/thread-13394-1-1.html
I cannot confirm it, but there is someone guessing: 我无法确认,但是有人在猜测:
I think, the problem lied on, miui can't handle menu with property android:checkable="true"
我认为,问题在于,miui无法处理带有android:checkable =“ true”属性的菜单
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.