The cause of your crash is likely tucked away in your styles. It likely contains an attribute referencing a dimension contained within the Android SDK, whereas you are running your application on an older version of the SDK that does not contain that dimension.
In this example, the author used the following attribute:
android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"
However, as the accepted answer points out, the listPreferredItemPaddingLeft
entry in android.R.attr
is only available from SDK level 14 onwards.
Either remove the offending entries, replace them, or separate the resource files such that they respect the SDK level. For instance, you could provide one style in res/values-14
, and another omitting those entries from the version in res/values
.