android - Exception - failed to resolve attribute at index 6: TypedValue -


i'm seeing following exception:

04-06 13:35:58.498  4219  4219 e androidruntime: android.view.inflateexception: binary xml file line #17: failed resolve attribute @ index 6: typedvalue{t=0x3/d=0x46 "res/color/abc_secondary_text_material_dark.xml" a=2 r=0x7f0e00e5} 04-06 13:35:58.498  4219  4219 e androidruntime:    @ android.view.layoutinflater.inflate(layoutinflater.java:539) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ uk.co.chrisjenx.calligraphy.calligraphylayoutinflater.inflate(calligraphylayoutinflater.java:60) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ android.view.layoutinflater.inflate(layoutinflater.java:423) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ android.support.v7.internal.view.menu.menupopuphelper$menuadapter.getview(menupopuphelper.java:374) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ android.support.v7.internal.view.menu.menupopuphelper.measurecontentwidth(menupopuphelper.java:223) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ android.support.v7.internal.view.menu.menupopuphelper.tryshow(menupopuphelper.java:157) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ android.support.v7.widget.actionmenupresenter$openoverflowrunnable.run(actionmenupresenter.java:781) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ android.os.handler.handlecallback(handler.java:739) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ android.os.handler.dispatchmessage(handler.java:95) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ android.os.looper.loop(looper.java:148) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ android.app.activitythread.main(activitythread.java:5417) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ java.lang.reflect.method.invoke(native method) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:726) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ com.android.internal.os.zygoteinit.main(zygoteinit.java:616) 04-06 13:35:58.498  4219  4219 e androidruntime: caused by: java.lang.unsupportedoperationexception: failed resolve attribute @ index 6: typedvalue{t=0x3/d=0x46 "res/color/abc_secondary_text_material_dark.xml" a=2 r=0x7f0e00e5} 04-06 13:35:58.498  4219  4219 e androidruntime:    @ android.content.res.typedarray.getlayoutdimension(typedarray.java:705) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ android.view.viewgroup$layoutparams.setbaseattributes(viewgroup.java:6890) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ android.view.viewgroup$marginlayoutparams.<init>(viewgroup.java:7071) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ android.widget.framelayout$layoutparams.<init>(framelayout.java:446) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ android.widget.framelayout.generatelayoutparams(framelayout.java:386) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ android.widget.framelayout.generatelayoutparams(framelayout.java:385) 04-06 13:35:58.498  4219  4219 e androidruntime:    @ android.view.layoutinflater.inflate(layoutinflater.java:502) 

this has happened twice when clicked menu button in toolbar. unfortunately, seems quite unpredictable , happened twice out of lot of attempts. menu looks this:

<menu xmlns:android="http://schemas.android.com/apk/res/android"   xmlns:app="http://schemas.android.com/apk/res-auto">    <item android:id="@+id/menu_action_show_project_startup"     android:title="@string/menu_action_project_intro"     android:orderincategory="300"     app:showasaction="never"/>    <item android:id="@+id/menu_action_report_issue"       android:title="@string/menu_action_report_issue"       android:orderincategory="300"       app:showasaction="never"/>    <item android:id="@+id/menu_action_toggle_mobile_data"     android:checkable="true"     android:checked="true"     android:title="@string/menu_action_toggle_mobile_data"     android:orderincategory="500"     app:showasaction="never"/>    <item android:id="@+id/menu_action_logout"     android:title="@string/menu_action_logout"     android:orderincategory="600"     app:showasaction="never"/>  </menu> 

i had @ similar question - android xml: runtimeexception: failed resolve attribute @ index 6 - problem doesn't seem originate fab button , using appcompat in app.

i think bug report google, make sure use correct theme

https://code.google.com/p/android/issues/detail?id=152141


Comments