Reputation: 735
I have a xml file. dimens.xml. There I have an entry like
<item name="attr_name" format="float" type="vals">1.0</item>
However when I try to run gradle build, gradle gives an error 'Execution failed for task ':mergeDebugResources'. Unsupported type 'vals'
I am fetching the value as context.getResources().getValue(R.vals.store_list_view_width_ratio...
How do I tackle this so that gradle does not give any error. Also I removed the type attribute, then gradle started saying unknown type 'item'
What should be done?
Upvotes: 2
Views: 7572
Reputation: 38098
vals is not valid. Use type="dimen" and R.dimen...
Reference: https://stackoverflow.com/a/20120240/2649012
Upvotes: 2