Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to start android activity on certain devices
    primarykey
    data
    text
    <p>I put an application on Play Store and I received a Crash report that I'm having an hard time to reproduce.</p> <p>It comes from a <code>V858 (hwu8160)</code> device running Android 2.2. The exception it raised is the following:</p> <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mariosangiorgio.FutsalCoach/com.mariosangiorgio.FutsalCoach.FutsalCoachActivity}: android.view.InflateException: Binary XML file line #10: Error inflating class &lt;unknown&gt; at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) at android.app.ActivityThread.access$2300(ActivityThread.java:125) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) at dalvik.system.NativeStart.main(Native Method) Caused by: android.view.InflateException: Binary XML file line #10: Error inflating class &lt;unknown&gt; at android.view.LayoutInflater.createView(LayoutInflater.java:513) at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563) at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) at android.view.LayoutInflater.inflate(LayoutInflater.java:407) at android.view.LayoutInflater.inflate(LayoutInflater.java:320) at android.view.LayoutInflater.inflate(LayoutInflater.java:276) at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:201) at android.app.Activity.setContentView(Activity.java:1647) at com.mariosangiorgio.FutsalCoach.FutsalCoachActivity.onCreate(FutsalCoachActivity.java:89) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) ... 11 more Caused by: java.lang.reflect.InvocationTargetException at android.widget.TextView.&lt;init&gt;(TextView.java:352) at java.lang.reflect.Constructor.constructNative(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:446) at android.view.LayoutInflater.createView(LayoutInflater.java:500) ... 22 more Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1 at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:463) at android.widget.TextView.&lt;init&gt;(TextView.java:677) ... 26 more </code></pre> <p>I setup an emulator running Android 2.2 but I cannot reproduce the issue. Do you have any suggestion about what I should to in order to find the cause of the error and fix it?</p> <p>This is what I have in the activity layout file at line 10:</p> <pre><code>&lt;TextView android:id="@+id/match_timer" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_marginTop="20dp" android:text="@string/default_time" android:textAppearance="?android:attr/textAppearanceLarge" android:textSize="@dimen/bigClockFontSize" android:singleLine="true" /&gt; </code></pre> <p>It seems that for some reason the device is not loading the <code>@dimen/bigClockFontSize</code> value. I managed to trigger the error in the emulator by removing the value from <code>res/values/dimens.xml</code>.</p> <p>The device presenting the error is using the italian locale and the device has a small screen. I have the following resources files:</p> <pre><code>values/dimens.xml values/strings.xml values/styles.xml values-it/strings.xml values-normal-hdpi/dimens.xml values-normal-xxhdpi/dimens.xml </code></pre> <p>I assume that the device should resolve the <code>values/dimes.xml</code> file. Does it do that?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload