android - How to debug AppCompat TextView InflateException? -


this crash came in via our crash reporting system. cannot reproduce crash, , date have 1 report.

the application large application, many activities , fragments, , stacktrace gives no indication of in application crash occurred (the entire stacktrace appears take place in android or appcompat classes - no mention of app's code).

so have no way of knowing textview, out of 100s of textviews, in application @ issue (and no, cannot post layout xml files entire application).

given information, can offer advice on how debug stacktrace?

fatal exception: android.view.inflateexception: binary xml file line #43: binary xml file line #43: error inflating class textview  caused android.view.inflateexception: binary xml file line #43: error inflating class textview  caused java.lang.unsupportedoperationexception: failed resolve attribute @ index 4: typedvalue{t=0x2/d=0x1010099 a=1}        @ android.content.res.typedarray.getcolor(typedarray.java:476)        @ android.widget.textview.<init>(textview.java:1077)        @ android.widget.textview.<init>(textview.java:990)        @ android.support.v7.widget.appcompattextview.<init>(appcompattextview.java:62)        @ android.support.v7.widget.appcompattextview.<init>(appcompattextview.java:58)        @ android.support.v7.app.appcompatviewinflater.createview(appcompatviewinflater.java:103)        @ android.support.v7.app.appcompatdelegateimplv9.createview(appcompatdelegateimplv9.java:1029)        @ android.support.v7.app.appcompatdelegateimplv9.oncreateview(appcompatdelegateimplv9.java:1087)        @ android.support.v4.view.layoutinflatercompathc$factorywrapperhc.oncreateview(layoutinflatercompathc.java:47)        @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:776)        @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:734)        @ android.view.layoutinflater.rinflate(layoutinflater.java:865)        @ android.view.layoutinflater.rinflatechildren(layoutinflater.java:828)        @ android.view.layoutinflater.rinflate(layoutinflater.java:873)        @ android.view.layoutinflater.rinflatechildren(layoutinflater.java:828)        @ android.view.layoutinflater.rinflate(layoutinflater.java:873)        @ android.view.layoutinflater.rinflatechildren(layoutinflater.java:828)        @ android.view.layoutinflater.inflate(layoutinflater.java:525)        @ android.view.layoutinflater.inflate(layoutinflater.java:427)        @ android.view.layoutinflater.inflate(layoutinflater.java:378)        @ android.widget.editor$suggestionspopupwindow.initcontentview(editor.java:3686)        @ android.widget.editor$pinnedpopupwindow.<init>(editor.java:3384)        @ android.widget.editor$suggestionspopupwindow.<init>(editor.java:3669)        @ android.widget.editor.replace(editor.java:423)        @ android.widget.editor$3.run(editor.java:2343)        @ android.os.handler.handlecallback(handler.java:751)        @ android.os.handler.dispatchmessage(handler.java:95)        @ android.os.looper.loop(looper.java:154)        @ android.app.activitythread.main(activitythread.java:6682)        @ java.lang.reflect.method.invoke(method.java)        @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1520)        @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1410) 

if inflating view in service or applicaiton context theme attributes might unavalable @ times

use context.settheme(r.style.your_theme); before inflating view

i getting same error solved using this.

more on contextthemewrapper


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -