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.
Description of Problem:
Steps to reproduce the problem:
1. Update to new Xamarin Sturio 5.9
Resource entry is already defined on Strings.xml
No errors because may source code is that I published on Play Store
How often does this happen?
Today after Xamarin Studio update
Update to Xamarin Studio 5.9 (build 431)
could you attach the strings.xml, did you update Xamarin Android as well?
Created attachment 11054 [details]
The String.xml that have error on build Xamarin
Greg, I Update my Xamarin to 5.9 (build 431). I attached the string.xml.
Thanks a lot
You have duplicate strings
<string name="erroInesperado">Ocorreu um erro. Por favor tente novamente.</string>
<string name="erroInesperado">Ocorreu um erro inesperado em sua solicitação. Por favor, execute a operação novamente.</string>
Most likely what is happening is that you are now using a newer android tools version. The command to process the strings.xml is `aapt` and that has added errors over the years. It is likely that duplicate strings are now being treated as an error.
If you have multiple tools versions installed you can specify which version of the tools to use with the `$(AndroidSdkBuildToolsVersion)` MSBuild property:
But I'd suggest fixing the duplicates from the strings.xml.
Greg, I don't saw this string. I remove the duplicated string and works fine.
Thanks a lot.
You are Great.
For the future, the error in the Error Pad should show you the name of the resource that is duplicated:
Error APT0000: Resource entry erroInesperado is already defined. (APT0000) (B29329)