I have an application with over 100,000 users. But on some devices (~ 50) I get a strange exception. The stack trace indicates that the available one was not found.
Here is the stack trace:
java.lang.RuntimeException: Unable to start activity ComponentInfo{mindmApp.the.big.bang.theory.quiz/mindmApp.the.big.bang.theory.quiz.GameNormalActivity}: android.view.InflateException: Binary XML file line
I do not know why this drawable (this is an xml file) was not found.
Binary line of XML file # 237:
<TextView android:id="@+id/textViewSkip" android:layout_width="0px" android:layout_height="wrap_content" android:layout_marginLeft="4dp" android:layout_weight="1" android:background="@drawable/textviewxml_joker" android:gravity="center" android:text="@string/tvSkip" android:textAppearance="?android:attr/textAppearanceMedium" android:textColor="@color/color_textview" android:textSize="22sp" />
And here is the textviewxml_joker.xml file:
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/textview_joker_pressed" android:state_pressed="true"/> <item android:drawable="@drawable/textview_joker"/> </selector>
Anyone have an idea to solve this problem?
Best wishes!
source share