android.content.res.Resources $ NotFoundException:资源不是可绘制(颜色或路径):的TypedValue {T = 0X2 / D = 0x7f010076一个= 2} [英] android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x2/d=0x7f010076 a=2}

查看:1160
本文介绍了android.content.res.Resources $ NotFoundException:资源不是可绘制(颜色或路径):的TypedValue {T = 0X2 / D = 0x7f010076一个= 2}的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

道歉,如果这是一个重复的,我也尝试先找到任何类似的答案,失败了,因为似乎没有什么参考的ImageView?我不是一个Android开发人员,但我们在旧操作系统版本与看到我们的应用程序的问题!

Apologies if this is a duplicate, I did try and find any similar answers first and failed as nothing seemed to refer to ImageView? I'm not an Android dev, but we are seeing issues with our app on older OS versions!

02-20 09:56:15.885  11529-11529/com.octer E/AndroidRuntime﹕ FATAL EXCEPTION: main
android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x2/d=0x7f010076 a=2}
        at android.content.res.Resources.loadDrawable(Resources.java:2063)
        at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
        at android.view.View.<init>(View.java:3364)
        at android.widget.ImageView.<init>(ImageView.java:121)
        at android.widget.ImageButton.<init>(ImageButton.java:87)
        at com.android.internal.view.menu.ActionMenuPresenter$OverflowMenuButton.<init>(ActionMenuPresenter.java:556)
        at com.android.internal.view.menu.ActionMenuPresenter.initForMenu(ActionMenuPresenter.java:99)
        at com.android.internal.view.menu.MenuBuilder.addMenuPresenter(MenuBuilder.java:216)
        at com.android.internal.widget.ActionBarView.configPresenters(ActionBarView.java:483)
        at com.android.internal.widget.ActionBarView.setMenu(ActionBarView.java:448)
        at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:405)
        at com.android.internal.policy.impl.PhoneWindow.doInvalidatePanelMenu(PhoneWindow.java:775)
        at com.android.internal.policy.impl.PhoneWindow$1.run(PhoneWindow.java:198)
        at android.os.Handler.handleCallback(Handler.java:730)
        at android.os.Handler.dispatchMessage(Handler.java:92)
        at android.os.Looper.loop(Looper.java:137)
        at android.app.ActivityThread.main(ActivityThread.java:5103)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:525)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
        at dalvik.system.NativeStart.main(Native Method)

我也发现在互联网上这个职位,但没有一个解决方案似乎已经解决任何事情。问题是code构建并运行在Nexus 5,但不能在旧型号的手机。

I did discover this post on the internet but none of the solutions seems to have fixed anything. The problem is the code builds and runs on Nexus 5, but not on older model phones.

调试资源没有发现网站

推荐答案

对于所有那些有兴趣,删除以下父属性时,我们的问题得到了解决,从我们的标签之一:

For all those interested, our issue was resolved when removing the following parent attribute, from one of our tags:

parent="@style/Widget.AppCompat.ActionButton.Overflow"

这是一个pretty可怕的堆栈跟踪,这并没有解决任何逻辑位置 - 我们设法多小时的(删除,建立,删除,建立...等)

It's a pretty horrendous stack-trace, which didn't resolve to any logical location - we managed to isolate it after many hours of (Delete, build, delete, build...etc)

<style name="OcterActionBarOverflowButton">

希望这有助于!

这篇关于android.content.res.Resources $ NotFoundException:资源不是可绘制(颜色或路径):的TypedValue {T = 0X2 / D = 0x7f010076一个= 2}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆