Using string resource from barrel in menu causes undefined resource

Former Member
Former Member

I have a barrel defined called Commons.  Inside that barrel is a strings.xml resource.  This is an excerpt from that XML:

<string id="common_on">On</string>

<string id="common_off">Off</string>

<string id="common_yes">Yes</string>

<string id="common_no">No</string>

<string id="settings_menu_choose_date">Choose Date</string>

<string id="settings_menu_about">About</string>

When I use this from code it works as expected: (Rez.Strings.common_on)

However when I try to use this from a menu XML something strange happens:

<menu-item id="about" label="@Commons.Strings.settings_menu_about"/>

This is the message that I get from the compiler:

BUILD: ERROR: An undefined resource reference was detected during resource processing: @CommonsStrings.settings_menu_about.

Notice that the dot between Commons and Strings has been deleted.  It seems that there is a bug somewhere where that dot is stripped out and therefore the resource cannot be found.

Any ideas?