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.
Created attachment 16314 [details]
builds before and after forms packet upgrade
Updating a FOMRS project from forms v126.96.36.19929 to v188.8.131.52 causes all ANDROID builds to fail.
I have attach a file with the error give.
Further I have attached the build with forms v 184.108.40.20629 - showing the working build,
and a build after the packet update to form 220.127.116.11 - that fails.
I have also attached the packet.config file (in both version) so you can see what might cause the '--no-version-vectors' to be added to the AAPT tools - and thus thereby the error.
The `--no-version-vectors` value is present because something is setting the `$(AndroidResgenExtraArgs)` MSBuild property, which contains a list of additional parameters that are appended to the `aapt` command line.
What I don't know is what would be setting `$(AndroidResgenExtraArgs)`. Nothing within the Xamarin.Android build process sets that property; we only consume it.
This is where a repro would be handy. :-)
A quick (wrong?) search of all Xamarin github repo's *suggests* that `Xamarin.Android.Support.Vector.Drawable.targets` may be setting that property. Does your project by any chance include that file?
Indeed, the NuGet package contains that .targets file and also overrides $(AndroidResgenExtraArgs): https://www.nuget.org/packages/Xamarin.Android.Support.Vector.Drawable/23.3.0
*Why* it does that, I don't know.
I would suggest, however, that perhaps you should update your Android SDK Build-tools version? `aapt` from Build-tools 23.0.0 supports `aapt --no-version-vectors`.
`--no-version-vectors` is probably related to http://android-developers.blogspot.ca/2016/02/android-support-library-232.html
I am not sure I understand why this issue is marked as "resolved". I have a rather simple NUnit test project that contains only Xamarin Forms, Xamarin Forms Maps, and my business logic. Every since I updated to the latest version of Xamarin Forms (18.104.22.168) I am now getting this error. The only workaround that I have found is to manually edit the Xamarin.Android.Support.Vector.Drawable.targets file and remove the "Extra" option. The problem is, I need to do that EVERY TIME I do a clean all and restore of my packages and on top of that I can no longer use a build server as the package that is downloaded doesn't have this manual fix. So from what I can see this issue still exists and is a pretty significant blocker for those of us working with Android Development.