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.
Android.OS.BuildVersionCodes.LollipopMr1 enum disappeared with 22.214.171.124 update, needed to use "22" value instead. as Android.OS.BuildVersionCodes.Lollipop only covers "21". Need to check if a device is not Lollipop and I'm using this code now:
private bool NotLollipop()
return ((Android.OS.Build.VERSION.SdkInt < Android.OS.BuildVersionCodes.Lollipop) || ((int)Android.OS.Build.VERSION.SdkInt > 22));
I have tried to replicate using same revision of XA but seems fine for me targeting API 22.
I have emailed Narcís to check that he is targeting API 22 or above.
Yes, targeting API 22/23 solves the problem. Targeting 21 doesn't work. It used to work before upgrading to latest stable release.
In 5.1.7, we brought a handful of API fixes that were incorrectly generated,
and one of those contained BuildVersionCodes, which contained LollipopMr1 in
assemblies that are lower than API Level 22. That member should not exist in
the Mono.Android API which is supposed to reflect the Android framework API.
So it seems your project's Target SDK Version is below API Level 22, then that is
(unfortunately) expected. If you change the target API Level to >= 22, it will
appear again. Sorry for the inconvenience.