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 951 [details]
Screenshot for the bug.
Step To Reproduce:
1.Launch the MonoDevelop.
2.Click on "Start a New Solution" link.
3.Choose C# > Mono for Android in left hand panel.
4.Select Mono for Android Application from the center panel.
5.Open the solution for the sample application APIDemo.
6.Build thhe solution.
7.Observe that error appears.
When build the application 'APIDemo' error appears. Refer to the attached screenshot.
Error should not appear and the application shoult build successfully.
MonoDevelop 2.8.2 with Addin 22.214.171.124
Mono for Android 4.0
Mac 10.6 (Snow Leopard)
Mac 10.7 (Lion)
This issue exists with SnowLeopard also on all the API's.
You've set your TargetFrameworkVersion to something < Android 2.2, and the Sensor* types require Android 2.2 or later.
This is really a bug in the sample, and the sample should use some #if-fu to prevent building types that don't exist in the TargetFrameworkVersion.
This is fixed in the release-2.0 branch on monodroid-samples. We will push it to master when the release goes out:
This issue is fixed on:
Mono for Android 4.0.1
Mono 2.10.7 (Beta).
Hence, closing this issue.