As with all android resources, dimensions are stored in various qualified values.
values\dimens.xml
values-v21\dimens.xml
values-land\dimens.xml
It may be that the dimension is available in some, but not all necessary locations.
The easiest fix for this problem, is to add an entry into values\dimens.xml
which is the fall-back place if any of the specifics fail.