Ce crash est arrivé récemment via notre système de rapport d'accident. Je ne peux pas reproduire ce crash, et à ce jour nous avons seulement 1 rapport.Comment déboguer AppCompat TextView InflateException?
L'application est une grande demande, avec de nombreuses activités et des fragments, et l'stacktrace ne donne aucune indication de l'endroit où dans l'application de la collision est survenue (La stacktrace entière semble avoir lieu dans Android
ou AppCompat
cours - aucune mention de mon application de code).
Donc, je n'ai aucun moyen de savoir quel TextView
, sur 100s de TextViews, dans mon application est en cause (et non, je ne peux pas poster tous les fichiers XML de mise en page pour l'ensemble de mon application).
Compte tenu de cette information, quelqu'un peut-il offrir des conseils sur la façon de déboguer ce stacktrace?
Fatal Exception: android.view.InflateException: Binary XML file line #43: Binary XML file line #43: Error inflating class TextView
Caused by android.view.InflateException: Binary XML file line #43: Error inflating class TextView
Caused by java.lang.UnsupportedOperationException: Failed to resolve attribute at index 4: TypedValue{t=0x2/d=0x1010099 a=1}
at android.content.res.TypedArray.getColor(TypedArray.java:476)
at android.widget.TextView.<init>(TextView.java:1077)
at android.widget.TextView.<init>(TextView.java:990)
at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:62)
at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:58)
at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:103)
at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1029)
at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1087)
at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:47)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:776)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:734)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:865)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:873)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:873)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
at android.view.LayoutInflater.inflate(LayoutInflater.java:525)
at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
at android.view.LayoutInflater.inflate(LayoutInflater.java:378)
at android.widget.Editor$SuggestionsPopupWindow.initContentView(Editor.java:3686)
at android.widget.Editor$PinnedPopupWindow.<init>(Editor.java:3384)
at android.widget.Editor$SuggestionsPopupWindow.<init>(Editor.java:3669)
at android.widget.Editor.replace(Editor.java:423)
at android.widget.Editor$3.run(Editor.java:2343)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6682)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
Pouvez-vous poster 'SuggestionsPopupWindow'? – azizbekian
Pouvez-vous partager votre fichier .xml – Anil
@Anil non, je ne peux pas partager le fichier .xml de l'ensemble de mon application. J'ai mis à jour la question pour essayer de rendre la situation plus claire. – Mark