Skip to content Skip to sidebar Skip to footer

E/androidruntime(6696): Java.lang.runtimeexception: Unable To Start Activity Componentinfo{com

Solution 1:

From the LogCat:

Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x3
    at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:463)
    at android.widget.TextView.<init> (TextView.java:898)
    at android.widget.TextView.<init>   (TextView.java:556)

I don't think a text size can be represented by a string.

<TextView...android:textSize="@string/text_size" />

Try hard coding this value for all of your Views:

<TextView...android:textSize="16sp" />

If it works, look into Styles and Themes for the appropriate way to set one text size for every View.

Post a Comment for "E/androidruntime(6696): Java.lang.runtimeexception: Unable To Start Activity Componentinfo{com"