Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
If in Xamarin Studio you add a string resource to the 'values/strings.xml' file where the value of the resource begins with a question mark, optionally preceeded by white space, then you can't build the project.
The error: "No resource found that matches the givenname (at '<resource name>' with value '<resource value>')."
The error appears in the strings.xml editor.
Steps to reproduce:
1. Add this line to strings.xml:
2. Build the project. Error: No resource found that matches the given name (at 'bad_resource' with value '???').
In order to work around this, you have to make the value begin with something else other that a question mark. As long as the value begins with something else, you can keep the rest '?'s.
I tried to reproduce this issue as mentioned in bug description and I am able to reproduce this issue.
When I put a string which started with "?", I am getting build time error i.e. "No resource found that matches the given name (at 'bad_resources' with value '?tr')." but when I added anything else except "?", I am not getting any build error.
xamarin.Android : 4.12.00028
This is an Android "issue"/"bug"/"feature".
First of all, it bites Java users as well:
Second of all, the value of the <string/> element is not arbitrary text. It has rules:
For example, note that a single quote needs to be escaped. There are rules.
I suspect that as part of the (undocumented) rules, you can reference other resources, which means style references may be valid, and style references start with a '?':
I would suggest trying to wrap the value in double-quotes, e.g.